Forums › Forums › Search & Filter Pro › Programmatically Rebuild Cache
- This topic has 13 replies, 3 voices, and was last updated 9 years, 5 months ago by
Trevor.
-
Anonymous(Private) October 20, 2016 at 4:28 pm #65391
Hi,
I am on the process of creating a small personal plugin to work with your S&F plugin. What I need to do is trigger a full cache rebuild for S&F, just like how it would have been if I were to click on “Rebuild Cache” Button for a search form. I can see that the button is sending an ajax request with action:
cache_restart. What function is this ajax action running? I’d like to run that from my plugin.Thanks!
Anonymous(Private) October 23, 2016 at 12:27 am #65725Hi trevor,
I would like to do a full rebuild. I am aware of rebuilding by posts, but when deleting posts via
wp_delete_postdoesn’t seem to automatically update the fiters.Is there a way for me to rebuild the cache via code? I’m sure this is possible somehow, since the rebuild button is able to do it.
Thanks
-
AuthorPosts