• Hi, I have an automatic product data sync script running every night and whenever product data changes, the Yith product filters stop working. The thing that seems to help is clearing the filter cache (no cache plugins are being used on that site atm). Is there a way to trigger the filter cache deletion programmatically?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    hope you are doing well ??

    You can create a custom cron job or something similar, that executes the function that the plugin uses to clear cache transient.

    You can find it in:

    - wp-content/plugins/yith-woocommerce-ajax-product-filter/includes/class-yith-wcan-cache-helper.php

    The function name is: delete_transients

    We hope it helps you.

    Have a great day!

    Thread Starter kcrolin

    (@kcrolin)

    Hi, thanks for your response. I copied those delete_transient() rows into a separate function, which I’m calling right after my own cron job, but it didn’t help unfortunately.

    @ivansosa do you have a code example? I’m struggling with the same thing, but can’t figure out what goes wrong.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clear cache’ is closed to new replies.