WPEngine integration clears varnish cache on each /nocache/ hit
Opened this issue · 0 comments
The WPEngine integration appears to clear the page's varnish cache on each hit to a /nocache/ link, using the wp_criticalcss_nocache
action. This was added in 69c7926
Since the Web Check Queue hits the /nocache/ links, isn't the varnish cache being cleared every time the web check is done, regardless of whether there's page change to pass to the API Queue?
Would it be beneficial to instead duplicate the modify_permalink()
function from the Kinsta integration, and add a cache_bust query argument?
wp-criticalcss/lib/WP/CriticalCSS/Integration/Kinsta.php
Lines 29 to 32 in 1de13ff
wp-criticalcss/lib/WP/CriticalCSS/Integration/Kinsta.php
Lines 41 to 45 in 1de13ff
Apologies if I'm missing the purpose of the cache clear.