keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

Cache Inclusion for Post IDs or remove cache for logged_in users and add exlusions? #130

Closed sissibieber closed 4 years ago

sissibieber commented 4 years ago

We are running a WooCommerce shop with different price groups (defined by roles). When a user is logged in the cache is disabled, which is fine, especially for product pages. But we have some (only) content pages which we would like to be served by the cache. The question now, should we remove the regex for "disable cache" for logged_in users and then add the shop pages to the cache exclusion list (e.g. overview page, cart, checkout, products, ...) or would it be useful to add a specific cache inclusion option for page/post IDs?

Whats the best practice here?

coreykn commented 4 years ago

Thanks for reaching out. It feels like this is a question that would be better suited in the Cache Enabler Support Forum. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the reposted question (so that other people can find it) or add some more details if you feel this is a genuine bug report or enhancement request.

sissibieber commented 4 years ago

hey @coreykn - thanks for the feedback, that makes definitely sense. During writing I changed my first idea of a feature request to keep it an open question, because I am just not sure about it. Link to support forum