diff options
author | Dan McGee <dan@archlinux.org> | 2013-12-14 22:06:26 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-12-14 22:06:26 +0100 |
commit | 0b0e2b9d2aabd1c34f742e6525ee075751600e37 (patch) | |
tree | cd7bd988432c9caf189e6397d6cfc7de97cb68eb /README | |
parent | 5d74a99c6b8fbbd19ad441a74d835382025da522 (diff) | |
download | archweb-0b0e2b9d2aabd1c34f742e6525ee075751600e37.tar.gz archweb-0b0e2b9d2aabd1c34f742e6525ee075751600e37.tar.xz |
Fix some caching issues on the front page
The return value from get_recent_updates() was too big for memcached due
to all the attached objects, so the cache never actually worked. This
sucks, because we ended up doing all the work in this function and most
of the time we didn't use it because template fragment caching kicked
in.
Remove the cache_function decorator from this method, and instead
implement delayed calling of the function so we don't compute values we
aren't going to use. Template fragment caching will help us in most
cases.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions