summaryrefslogtreecommitdiff
path: root/main/middleware.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-07 19:33:52 -0500
committerDan McGee <dan@archlinux.org>2010-10-07 19:43:13 -0500
commitb2acd5cb94d0a675272048c1a3628152648911c1 (patch)
tree2ad9102aab22721be9acbf278359069a48e2fb19 /main/middleware.py
parentcf7bf2de294a0e7be37f03935c0a292d60ed1829 (diff)
Store latest news date in memcached
This saves two database queries each request, meaning no database hits at all if we are just going to return a 304 response. It also requires adding a post_save signal to ensure our cache is updated with the correct latest news date upon saving a news item. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/middleware.py')
0 files changed, 0 insertions, 0 deletions