Forums Forums Search & Filter Pro Will the cache rebuild automatically?

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

    Trevor
    #82699

    In 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
    #82734

    Hi 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?
    Thanks

    Trevor
    #82736

    So 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
    #82934

    No, I will have to test it. I was just wondering if it will work without additional manual work.
    I will let you know if I run into any problems. Thanks for answering my noob questions.

    Trevor
    #83042

    OK. I will leave this thread open for now, but may come back after a month or so and close it unless you follow up.

    Anonymous
    #83067

    Perfect! Thanks!

    Anonymous
    #86175

    Roland, any news? I have the same process as you. And I need to cache it manually everyday… Thanks!

    Anonymous
    #86445

    Right 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
    Roland

    Trevor
    #86460

    I 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.

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