- Edited
I just wanted to share something I put a few hours of work into; I did use Claude and ChatGPT to help me, my bash skills are lacking. If you run this script every hour as a cronjob, it will keep the Nginx or Redis Full page cache warm so your pages always load fast. It should also work for Cloudflare cache. It's also a nice way to make sure all your pages are loading. It also creates a nice HTML log file that can be viewed in a browser. It's working great for me so I thought I would share, I've never found a good solution to the cache warming issue. Please let me know if anyone sees an issue with this I missed. If you remove the 1 second pause between page loads it seems like NGINX will start rate limiting and pages will fail.
https://github.com/rsmith4321/nginx-cache-warmer