A/B of page is only serving the variant, not control
-
I’m evaluating this plugin.
I also use wp-supercache, and this is in turn served directly via nginx. I have made my cache-key be as below. This should cause it to serve the variants individually.
set $cache_uri $uri$is_args$arg_nab;
I then tested this:
curl https://mysite/page/?nab=0 curl https://mysite/page/?nab=1
and i see my two variants. (side note: do i need to add the arg_nab to my nginx cache key? I think it should be ok to be just $uri, meaning there is one cached copy since i think the underlying name is different for the variant)
Now, when i open the page in a browser (and then in incognito, again in a different browser, etc), i always get the variant, never the control
I have this in my location block
try_files "/wp-content/cache/supercache/$http_host/$cache_uri/index-https.html" "/wp-content/cache/supercache/$http_host/$cache_uri/index.html" $uri $uri/ /index.php$is_args$args;
it does not seem like wp-supercache makes 2 versions.
Do i need to create a
wp_cache_get_cookies_values
hook?
- The topic ‘A/B of page is only serving the variant, not control’ is closed to new replies.