Anonymous User 16850768
(@anonymized-16850768)
Cache Enabler caches a page as a static HTML file that is saved on the server’s disk. Once cached the static file is delivered and data from the database is no longer queried. This means it’s not possible to only exclude shortcodes. Instead, it would require the page that the shortcode is used on to be excluded.
For dynamic content to be loaded on a static HTML file you would need to use a JavaScript solution (e.g. Ajax).
Hm, is there maybe a PHP code I could use in the calendar plugin to clear the cache of a specific page every time I edit and save a date?
Anonymous User 16850768
(@anonymized-16850768)
I’m unsure of what that plugin offers as I’m not familiar with it, but you could definitely check the code base to see what’s available. The hooks available for Cache Enabler to make this happen can be found here: https://www.keycdn.com/support/wordpress-cache-enabler-plugin#hooks
If you encounter any questions during this just let me know.
It’s a simple occupancy plugin, you tick dates in a calendary and save: https://de.wordpress.org/plugins/occupancyplan/
Thank you for the hooks! I’m not a backend developer, but I will try to implement them.
So, I inserted one of the hooks into the plugin, so that every time a calendar is saved the cache of a specific post ID is cleared, and it works perfectly. Thank you!
-
This reply was modified 5 years, 2 months ago by
0711master.
-
This reply was modified 5 years, 2 months ago by
0711master.
Anonymous User 16850768
(@anonymized-16850768)
Great! Thanks for letting me know. I’m really happy to hear that.
If you haven’t already leaving a review is always appreciated.