Hey @emrevona,
Thanks for reaching out. The plugin should be compatible with most caching plugins but we’ve sometimes runs into issues with page caching. We’re always wanting to increase compatibility with as many plugins as possible though. I noticed that your plugin has options to clear the cache when publishing or updating a post, but as our plugin uses a shortcode to display the content then it wouldn’t cause the cache to clear in your plugin as the shortcode itself doesn’t change. I imagine this would be a pretty common issue with plugins that use shortcodes to display a feed of dynamic content – such as social media feeds, calendars, etc. Is there any kind of hook we can add to clear the cache in your plugin when the Facebook feed content updates in our plugin? Or some other solution you’d propose?
Many thanks,
John
Yes, there is hook to clear cache.
http://www.wpfastestcache.com/tutorial/delete-the-cache-by-calling-the-function/
how do you check that the facebook feed contant is updated or not? via wp_schedule?
Hey Emre,
Thanks for the link – I’ll take a look at that. We use set_transient to cache the data, and once the transient has expired then the plugin checks Facebook for new data, and then re-caches it. We do also include an advanced setting that allows the user to use wp_schedule to delete the plugin cache on a set interval.
John
you are welcome.
you can add the wpfc hook to clear cache when the data are expired.