How to automatically rebuild preloaded cache at 1pm?
-
Hi, I’ve got a question: I want to use preload and rebuild the cache for all posts and pages automatically at a certain time, e.g. 1pm. How should I setup the plugin?
1.) I could call “wget -O – dev/null https://xxxxxxx.xx/?action=wpfastestcache&type=preload > preload.log” via crontab at 1pm, but then it will only rebuild the cache for 4 items. So it has to be called repeatedly until the output is “Completed”. How can this be automated? Should I write a Bash script for this and call it via crontab? (The script would call the wget command in a loop until the output is “Completed”.)
2.) When the output is “Completed”, subsequently calls will not trigger a new rebuild. How can a new rebuild be initiated? Does the cache have to be deleted first? How can this be achieved via wget?
Or did I miss something and the plugin can to this on its own?
- The topic ‘How to automatically rebuild preloaded cache at 1pm?’ is closed to new replies.