Forums Forums Search & Filter Pro Programmatically Rebuild Cache

Viewing 10 posts - 1 through 10 (of 14 total)
  • Anonymous
    #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!

    Trevor
    #65408

    Do you need a full rebuild or a single post (ID) rebuild?

    Anonymous
    #65725

    Hi trevor,

    I would like to do a full rebuild. I am aware of rebuilding by posts, but when deleting posts via wp_delete_post doesn’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

    Trevor
    #65732

    I will ask Ross.

    Anonymous
    #65746

    Yes please, Thanks.

    Any news Trevor?

    Trevor
    #65748

    News? About this thread? It is Sunday today.

    Anonymous
    #65812

    Alright, Trevor. Can you update once you get a reply from Ross? Thanks

    Anonymous
    #65814

    Hi Trevor,

    Any updates?

    Trevor
    #65821
    This reply has been marked as private.
    Anonymous
    #65980

    Alright Trevor.

    Thanks for the big help. I am just in an urgent need to know how this can be done.

Viewing 10 posts - 1 through 10 (of 14 total)