I’m trying to configure my Litespeed cache, and when I edit pages in cornerstone, I have to purge the cache of the page to get it to show. Is there a hook I can add to the hook listener that will clear the cache on edit/update?
Hi @jrhager84,
Thanks for reaching out.
There is no X specific hooks on that action. You need to use the default WordPress hook on that. I would suggest you go through the following article on hooks available in X and Pro.
Hope it helps.
Thanks
How does someone use caching with this then? It’s kind of counterintuitive to have to manuall purge the cache when you update the page. Is it supposed to call the default page_updated hook in WP when you update the page?
Hello @jrhager84,
Thanks for writing in!
In most cases, we highly recommend that you temporarily deactivate the 3rd party caching plugin while your are building the pages or edit a page. This is to make sure that you can easily see your changes when viewing the live page. The caching plugins or any optimizing plugins are best to TURN ON when you are done building the site and ready to go live. You can always TURN them OFF when you are in your staging site.
Best Regards.
The problem is the client wants to edit small pieces of the content on pages, so I just figured there would be a page_update hook call. So basically there’s no way to trigger a page-based cache purge after cornerstone content update? That’s unfortunate.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.