Way to prevent snippet of template from being cached?
Way to prevent snippet of template from being cached?
Way to prevent snippet of template from being cached?
You would better to contact plugin author, because this is for more general wordpress stuff. In general, you can clear your cache when comment is added. There is comment_post hook. This hook will be run when the comment is submitted. To see Reference
Admin area is caching posts in the editor
It’ entirely possible that WordPress detects the device based on the User-Agent requests header and displays the right version of the website accordingly. If you don’t instruct Varnish to create a cache variation depending on the device, only one version will be cached per page. Device detection Varnish is able to perform device detection by … Read more
It turns out that the folder wp-content/mu-plugins, for whatever reason, didn’t contain plugins, but instead a dump of broken copies of most pages on the site, as well as an outdated copy of the entire public_html directory, with another plugins folder nested inside of it, etc! How that happened is beyond me, but simply removing … Read more
RESOLVED! See that Sucuri plugin? The DNS for my site points to a Sucuri server which does caching. I logged into the Sucuri site and added an exclusion for the WordPress password protected page to the caching setup using the UI. Now the new password works and the page behaves as expected. No cache busting … Read more
Site speed slows when user logged in
Find the specific AJAX call URL and prevent that being cached with the WP-Rocket advanced rules settings. https://docs.wp-rocket.me/article/54-exclude-pages-from-the-cache. As per your comment, you need a strategy for not having the nonce in a file that can be cached such as javascript files, so as you said, use PHP to generate the nonce and pass it … Read more
Caching content with query string parameters Varnish hashes the URL and uses this value as its cache key. When a single value in the URL changes, the cache key changes. This would result in a cache miss. Query string parameters are exceptionally prone to this: omitting a parameter, adding a parameter, or changing the order … Read more
This might be a solution but I have not tested it. go to: wp-admin/admin.php?page=litespeed-cache#excludes Or navigate litespeed->cache->excludes <IfModule LiteSpeed> RewriteEngine On RewriteCond %{REQUEST_URI} ^/filename\.php RewriteRule .* – [E=cache-control:no-cache] </IfModule> replace filename with the plugin filename.