[Answered ]-Auto update cache in Django

2👍

You can write a so called warm up script. This is just a script that opens the URLs you want to habe in the cache. Run this script as a periodic task. The simplest Version would be a shell script with curl statements in it tha is periodicly executed by cron.

The intervall with which you call it depends on your cache settings. If you configured to habe pages 10 minutes in cache calling the script every 10 minutes makes sure everything is always in the cache.

👤Anton

Leave a comment