Hey Paddy
Why not perform a ajax request to to trigger the rebuild? I think that you would need to be in the admin area for it to work though.
Alternatively, you can try to do this manually, you would need the class located in
search-filter-pro/includes/class-search-filter-post-cache.php
You’d probably just need to init the class –
$sf_cache = new Search_Filter_Post_Cache();
Then run the function:
$sf_cache->cache_restart();
The function will also start processing the first batch of posts too if wp_remote_post
is not working in your environment – so this may cause it to take considerable time to complete (ie, a few seconds, possibly more depending on your environment)
That being said, this class wasn’t made to be dev friendly at this stage, although looking at it it should just work – be aware of possible changes in future releases where class names and functions may be changed.
Thanks