Only use cookie if shortcode is shown
-
We’ve been using the plugin for a while now at different sites, but started using AccelerateWP from CloudLinux to be able to use Object Cache / Redis at our sites.
Yet, this caused the cache to stop working at some pages, including our homepage, causing WordPress native health monitor to report no cache is enabled at our site.
When asked AccerelateWP team, we got the following reply:
The site has the “YayCurrency” plugin installed, which, using the yay_currency_widget cookie, saves the necessary data for the plugin to work.
AccelerateWP is compatible with the “YayCurrency” plugin and correctly separates the cache for different plugin data stored in the yay_currency_widget cookie.
WordPress Site Health sends a GET request to the main page that checks how long the page takes to load.On the first request to the page, the yay_currency_widget cookie does not yet exist, so AccelerateWP does not cache the page in order to correctly split the cache based on the cookie data. Therefore, SiteHealth displays the page load time without the cache. In other cases, AccelerateWP and ObjectCache are stable, this does not affect users in any way, but we will improve the check of cached pages for SiteHealth.
Is there any way to avoid using any cookie unless YayCurrency’s shortcode is shown at any page?
That would prevent the problem with AccelerateWP, and probably speed up our site.
The page I need help with: [log in to see the link]
- The topic ‘Only use cookie if shortcode is shown’ is closed to new replies.