Closed RoyWilliams closed 10 months ago
simple code to cache the query that drives the front page, and run the query only if the cache file can't be opened or is older than 30 minutes
Needs two new in the django settings.py
FRONT_PAGE_CACHE = '/home/ubuntu/front_page_cache.json' FRONT_PAGE_STALE = 1800
simple code to cache the query that drives the front page, and run the query only if the cache file can't be opened or is older than 30 minutes
Needs two new in the django settings.py
FRONT_PAGE_CACHE = '/home/ubuntu/front_page_cache.json' FRONT_PAGE_STALE = 1800