- This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › How to rebuild cache automatically ?
Tagged: cache, rebuild cache
Hello,
i must import some datas everyday but my fields of “search and filter” are not updated if i don’t click in “Rebuild Cache” button manually.
How can i rebuild cache automaticaly ? with a cron task perahps ?
Help me please to resolce this.
JMA
It depends what method of import you are doing. as long as you are doing it programmatically (usually a plugin) it will do this one post at a time.
As it saves each new post, it needs to update the S&F cache for that post. In the documentation is this:
You can also search the forum as many other users have used this. This is the search:
https://support.searchandfilter.com/forums/search/search_filter_update_post_cache/
Remember that the ID number is often to be found with a function, like get_the_id(); and should not be fixed at one number, such as 23 in the example.