Helps Shopp integrate with caching plugins. Currently designed for W3 Total Cache, but the cookie strategy will work for any cache plugin that monitors cookies.
Other caching plugins will require manual configuration, but W3 Total Cache is configured automatically. * Automatically integrates with W3 Total Cache to configure caching settings – no other configuration is required! * Automatically configures common Shopp paths that should not be cached (W3 Total Cache only) * Sets a cookie whenever the cart is updated. If the cart becomes empty the cookie is purged.
* Sets DONOTCACHEPAGE constant on ‘init’ action to make sure that pages with shopping cart items are never cached. * Clears the cache when product, category etc. details are changed.
Where is the options page?
You can configure all the options using the ‘Shopp Cache Helper’ entry in the ‘Settings’ menu. Usually the default options are all you need to get started. In fact not many of the options really need to be configured, except possibly the option to flush the cache when Shopp product data is changed. If you want to flush the cache manually whenever you change Shopp
backend data (eg Product, Category, etc), just uncheck this option.
How do I configure it with W3 Total Cache?
You no longer have to do anything – Shopp Cache Helper will update W3 Total Cache settings automatically.
All you have to do is activate this plugin, and Shopp will be completely configured to work with the W3 Total Cache page cache.
How do I configure it with (Some other caching plugin)?
Currently this plugin automatically integrates with W3 Total Cache. To configure for other caches, do the following:
- Tell your caching plugin to not serve cached pages when the cookie is detected (default cookie is ‘shopp_items_in_cart’)
- Tell your caching plugin to never cache the pages listed in the ‘No-cache paths’ setting of this plugin.
- Make sure your caching plugin honours the ‘DONOTCACHEPAGE’ constant. Currently W3 Total Cache and WP Super Cache are known to honour this constant.
- Production release
- Admin screen added to configure caching options
- Automatically integrates with W3 Total Cache to add required settings
- Added cookie code back, uses this as well as DONOTCACHEPAGE constant for double checking
- Stop clearing page cache when cart emptied
- Replaced cookie with DONOTCACHEPAGE constant
- Added code to clear page cache when cart is emptied. (This is overkill, really should make this an option.)
- Clear page cache whenever Shopp data is changed, such as product details.
- Initial version