Support » Plugin: Product Feed PRO for WooCommerce » Filter for adding other caching plugins

  • Hey all,
    this is a very good plugin. Thank you for it!

    Is there a way to add a filter or a quick solution, to extend the caching/nocaching system/class?
    I see you added some caching options in class-caching.php, which is then called woocommerce-sea.php when creating the feeds.

    However, I, for example, am on a different caching system, made by SpinupWP and I couldn’t find any way of extending the caching system to also take into consideration the SpinupWP caching plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor supportadtribes



    Thanks for using our plugin and reaching out to us.

    Unfortunately adding a filter or quick solution is not an option as every caching plugin has its own unique instructions on disabling its caching features for our product feeds.

    We will add your request, to support SpinupWP caching, to our user-request list. When we get a few more unique requests from users we will consider adding support for it.

    Thread Starter Alexandru Negoita


    Thank you for your fast reply! It really means allot to me.

    I thought at first to fork the plugin and keep it as such in the project. However, there is some flexibility left and I could actually extend the class-caching.php into the theme’s functions.php file.

    First, I had to create a new class which extends the WooSEA_Caching class and add a function to clear SpinupWP object cache, which is actually using the wp_cache object … so it was just a “wp_cache_flush”.

    Just for being safe, I also added the “spinupwp()->cache->purge_page_cache()” , after checking if spinupwp function exists. But, I don’t think is needed.

    I called the newly created class in functions.php where I had overriten you two functions which deals with the caching:
    woosea_project_refresh and woosea_create_all_feeds
    using the proper actions for it.

    In the new functions I replaced your caching class with the one that I created and extends yours.

    Of course, this should be just a patch, until your team updates the plugin, taking into consideration the SpinupWP caching plugin.

    I hope this will be helpful, as it might reduce the development time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter for adding other caching plugins’ is closed to new replies.