Closed hazcod closed 9 years ago
As we need to fill up the cache with information from TheTvDB, the first visit will always be slow(er). Possible solution; re-fill cache every CACHE_TTL. Requires work for a daemon.
chmod a+x /scripts/fillCache.php crontab -e 00 * * * * /usr/local/php54/bin/php /home/john/myscript.php
Where fillCache calls all getJSON functions.
b8bd2175d8cd467bfc83e5c70667137eaa6a457d
Still need to test.
As we need to fill up the cache with information from TheTvDB, the first visit will always be slow(er). Possible solution; re-fill cache every CACHE_TTL. Requires work for a daemon.