Cache Buster Query
-
I currently have the cache buster query enabled (not brave enough yet to go buster free with CloudFlare rules as I fear I will miss something important!). The buster is added automatically to URLs that are self-generated by WordPress. However, I have noticed that some links, particularly those I have added myself to Elementor elements, do not seem to automatically add the buster on. Is this something I should expect?
-
I’ve actually taken the plunge and followed the steps to implement the CloudFlare rules – however, now my cache status constantly shows as Dynamic (www.examinedental.com) and the tests fail in the Dashboard.
Hi,
Can you share a screenshot of the page rule section and the cache rule section from your Cloudflare dashboard?Hi,
So my Page Rules: https://ibb.co/kXpm216 (both have been switched off)
My cache rules: https://ibb.co/Ld5pjGg
This is my expression for the bottom cache rule (the main one -swapped out website name):
(http.host eq “website.com” and not starts_with(http.request.uri.path, “/wp-admin”) and not starts_with(http.request.uri.path, “/wp-login”) and not starts_with(http.request.uri.path, “/wp-json/”) and not starts_with(http.request.uri.path, “/wc-api/”) and not starts_with(http.request.uri.path, “/edd-api/”) and not starts_with(http.request.uri.path, “/mepr/”) and not http.request.uri.path contains “/register/” and not http.request.uri.path contains “/dashboard/” and not http.request.uri.path contains “/members-area/” and not http.request.uri.path contains “/wishlist-member/” and not http.request.uri.path contains “phs_downloads-mbr” and not http.request.uri.path contains “/checkout/” and not http.request.uri.path contains “.xsl” and not http.request.uri.path contains “.xml” and not http.request.uri.path contains “.php” and not starts_with(http.request.uri.query, “s=”) and not starts_with(http.request.uri.query, “p=”) and not http.request.uri.query contains “nocache” and not http.request.uri.query contains “nowprocket” and not http.cookie contains “wordpress_logged_in_” and http.cookie ne “comment_” and not http.cookie contains “woocommerce_” and not http.cookie contains “wordpressuser_” and not http.cookie contains “wordpresspass_” and not http.cookie contains “wordpress_sec_” and not http.cookie contains “yith_wcwl_products” and not http.cookie contains “edd_items_in_cart” and not http.cookie contains “it_exchange_session_” and not http.cookie contains “comment_author” and not http.cookie contains “dshack_level” and not http.cookie contains “auth_” and not http.cookie contains “noaffiliate_” and not http.cookie contains “mp_session” and not http.cookie contains “xf_” and not http.cookie contains “mp_globalcart_” and not http.cookie contains “wp-resetpass-” and not http.cookie contains “upsell_customer” and not http.cookie contains “wlmapi” and not http.cookie contains “wishlist_reg” and not starts_with(http.request.uri.path, “/login”) and not starts_with(http.request.uri.path, “/register”) and not http.request.uri.path contains “thank-you”)
Thanks
Hi,
1. Why do you have so many cache rules? You just need one. Check: https://gist.github.com/isaumya/af10e4855ac83156cc210b7148135fa2
2. In the host you need to put www like thiswww.examinedental.com
Thanks for getting back. I am in the process of combining them currently. I also found it easier to break things down initially so I knew exactly what each one does. The link you provided doesn’t seem to work unfortunately?
2. Now reads – I am assuming this is what you referred to?:
(http.host eq “www.website.com” and not starts_with(http.request.uri.path, “/wp-admin”) and not starts_with(http.request.uri.path, “/wp-login”) and not starts_with(http.request.uri.path, “/wp-json/”) and not starts_with(http.request.uri.path, “/wc-api/”) and not starts_with(http.request.uri.path, “/edd-api/”) and not starts_with(http.request.uri.path, “/mepr/”) and not http.request.uri.path contains “/register/” and not http.request.uri.path contains “/dashboard/” and not http.request.uri.path contains “/members-area/” and not http.request.uri.path contains “/wishlist-member/” and not http.request.uri.path contains “phs_downloads-mbr” and not http.request.uri.path contains “/checkout/” and not http.request.uri.path contains “.xsl” and not http.request.uri.path contains “.xml” and not http.request.uri.path contains “.php” and not starts_with(http.request.uri.query, “s=”) and not starts_with(http.request.uri.query, “p=”) and not http.request.uri.query contains “nocache” and not http.request.uri.query contains “nowprocket” and not http.cookie contains “wordpress_logged_in_” and http.cookie ne “comment_” and not http.cookie contains “woocommerce_” and not http.cookie contains “wordpressuser_” and not http.cookie contains “wordpresspass_” and not http.cookie contains “wordpress_sec_” and not http.cookie contains “yith_wcwl_products” and not http.cookie contains “edd_items_in_cart” and not http.cookie contains “it_exchange_session_” and not http.cookie contains “comment_author” and not http.cookie contains “dshack_level” and not http.cookie contains “auth_” and not http.cookie contains “noaffiliate_” and not http.cookie contains “mp_session” and not http.cookie contains “xf_” and not http.cookie contains “mp_globalcart_” and not http.cookie contains “wp-resetpass-” and not http.cookie contains “upsell_customer” and not http.cookie contains “wlmapi” and not http.cookie contains “wishlist_reg” and not starts_with(http.request.uri.path, “/login”) and not starts_with(http.request.uri.path, “/register”) and not http.request.uri.path contains “thank-you”)
Hi,
As I can see your pages are being cached by Cloudflare now: https://i.imgur.com/Y0L06b3.jpegBut I do not see this plugin being active on your website.
Hi,
I definitely have the plugin active:
It was working before I changed these settings for definite so unsure what is going on here..
Then you definitely have so other page caching solution action which is removing the response headers added by this plugin. Please ensure that you have page caching is disabled in other optimization plugins that you have.
Also, if you have any server-level page caching enabled, consider disabling tht as well.
I have FlyingPress as my only other caching option and no server-level caching (I’m running OLS). I guess this setting being off is an issue: https://ibb.co/Ybq5Y66 ?
Please consider disabling flyingpress and clear the Cloudflare cache and then let me know so that I can check your website response headers.
I have just disabled FP and purged the cache – please let me know what you find. Thank you
Yes, now everything is working well: https://i.imgur.com/4a8R0nL.jpeg
Thank you – forgive me for the stupid question then. With FP enabled (as it provides lots of other key functions), is this plugin redundant?
In FP, you can disable all kind of page cache operation but use it for other static file optimization features if that plugin allows you to do that. Otherwise you need to choose between one or the other.
- The topic ‘Cache Buster Query’ is closed to new replies.