Forums › Forums › Search & Filter Pro › Will the cache rebuild automatically?
Tagged: cache, cron, WP Allimport
- This topic has 16 replies, 5 voices, and was last updated 6 years, 12 months ago by Trevor.
-
Anonymous(Private) January 16, 2017 at 1:11 pm #82680
Hey everyone.
I have a site with an automatic import from XML running every night (WP All Import). That means there might be new posts overnight created by wp all import and others might be deleted.
Will those changes be correctly displayed in my filters or would I have to recreate the cache every day?If that is the case, is there a way to rebuild the cache via cronjob or any other automatic way? Otherwise this great plugin would be of no use to me because I will not be able to recreate cache manually every single day.
It also gives me a notice that background building of cache is not enabled on this server or something like that. Will that affect the way cache is (re)built?
What server setting exactly would have to be changed to fix this?Thanks for answering!
Regards
RolandTrevor(Private) January 16, 2017 at 2:33 pm #82699In general, assuming the import process is following normal WordPress procedures, the cache should add each new post to the cache as it is imported. There can be many factors governing why a background building of the cache might not be working, so that is more difficult to tie down. What type of hosting do you have?
Anonymous(Private) January 16, 2017 at 3:24 pm #82734Hi Trevor,
thanks for your quick answer. The site has managed hosting (so no own server) but it’s pretty high quality and we have some options to edit php.ini and things like that.
So we will just have to try, I guess.So there’s no way to start caching via cron?
ThanksTrevor(Private) January 16, 2017 at 3:27 pm #82736So there’s no way to start caching via cron?
Not that I am aware of. It should not be necessary, as each post is added, the cache is modified to include it. Otherwise the load on the server would be intolerable. Are you saying that it is not working?
Anonymous(Private) January 29, 2017 at 9:03 am #86445Right now I’m down with the flu so I didn’t have time to test yet. But hearing what Edgard says scares me. I need the cache to rebuild automatically or by cron. As soon as I am back on my feet I will test. But maybe someone from the team can say something about the possibility to add cron-features for that in the future?
Thanks
RolandTrevor(Private) January 29, 2017 at 11:51 am #86460I would repeat what I said in this post:
https://support.searchandfilter.com/forums/topic/will-the-cache-rebuild-automatically/#post-82699
It should work fine, unless the import process is not doing things ‘properly’ and causing WordPress to fail to see the newly imported posts being imported (WordPress will see them as posts, but it will not broadcast to any code that is watching for new posts).
Have you ever watched the WP All Import process? In the plugin I last used (WP Ultimate CSV Importer) you can see it make and save each post separately, using the standard WordPress system. After it had run, I could clearly see the S&F cache had rebuilt. For that project, I remember testing WP All Import and it did not do that.
-
AuthorPosts