Skip to content

Commit

Permalink
Global Styles on Personal AB: Update assignment cache key (#41383)
Browse files Browse the repository at this point in the history
* Added a check that make sure the experiment is running before we cache the experiment assignment

* changelog

* Changed approach so that we use a new cache key once the experiment starts running

* Updated changelog
  • Loading branch information
rcrdortiz authored Jan 29, 2025
1 parent 923e295 commit 5317231
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Changed the experiment cache key so that users get assigned once the experiment starts.
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ function wpcom_site_has_global_styles_in_personal_plan( $blog_id = 0 ) {
$blog_id = get_current_blog_id();
}

$cache_key = "global-styles-on-personal-feb-2025-$blog_id";
$cache_key = "global-styles-on-personal-02-2025-$blog_id";
$found_in_cache = false;
$has_global_styles_in_personal_plan = wp_cache_get( $cache_key, 'a8c_experiments', false, $found_in_cache );
if ( $found_in_cache ) {
Expand Down

0 comments on commit 5317231

Please sign in to comment.