diff options
author | Dan McGee <dan@archlinux.org> | 2010-10-09 00:09:34 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-09 00:09:34 +0200 |
commit | 16b27bc9e1ad6c5f4ad8cbe732b1e76c4df5edf6 (patch) | |
tree | 2114ec3a14b7709259fb4b14a341546d723e73a0 /news | |
parent | 1946d3d144c555a51ee7072b215126be931247aa (diff) | |
download | archweb-16b27bc9e1ad6c5f4ad8cbe732b1e76c4df5edf6.tar.gz archweb-16b27bc9e1ad6c5f4ad8cbe732b1e76c4df5edf6.tar.xz |
Fix potential race conditions in caching
Use a 'set to None' sentinel to indicate data updates are in progress and we
need to hold off a bit on caching a new value. This logic is gleamed from
the "Scaling Django" slides presented by Mike Malone and available freely on
SlideShare.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news')
0 files changed, 0 insertions, 0 deletions