Tagged: W3 Total Cache
- AuthorPosts
- November 15, 2022 at 12:34 pm #68758JossefGuest
I want to ask if i will be able to programmatically force WordPress to serve all pages (exclude admin, REST API, etc) from cache system ***no matter which $_GET parameter\query string is used**.
My customer needs a caching plugin that by default will cache any Query String for all site pages, we want to force **any** Query String to be cached and use a list to exclude spesific Query Strings we don’t want to cheche
Will it be possible using w3 total cache?
Can you send us a code example or a relevant guide for that so we can know how much work will be needed from our developers?Thank you!
November 28, 2022 at 11:55 am #70992Marko VasiljevicKeymasterHello Jossef,
Thank you for reaching out and I am happy to assist you with this.
By default, is W3 Total Cache when using the Disk: Enhanced Caching method for Page Caching, query strings are not cached. To achieve that, you need to add the query string to Performance>Page Cache>Purge Policy>Advanced>Accepted query strings: filed.
To Cache everything with query string you need to use Disk: Basic caching method or memory-based Caching like Redis or Memcached, and make sure to enable the option:Cache URIs with query string variables
in Performance>Page Cache>General section of the plugin.I hope this helps!
Thanks!
- AuthorPosts
- The topic ‘Force page cache for any GET parameters’ is closed to new replies.