increment_cache_key should start with 1, obviously
This commit is contained in:
parent
739dbf80d5
commit
fc1a1bf586
1 changed files with 1 additions and 1 deletions
2
src/c3nav/mapdata/utils/cache/stats.py
vendored
2
src/c3nav/mapdata/utils/cache/stats.py
vendored
|
@ -6,7 +6,7 @@ def increment_cache_key(cache_key):
|
||||||
try:
|
try:
|
||||||
cache.incr(cache_key)
|
cache.incr(cache_key)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
cache.set(cache_key, 0, None)
|
cache.set(cache_key, 1, None)
|
||||||
|
|
||||||
|
|
||||||
def stats_snapshot(reset=True):
|
def stats_snapshot(reset=True):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue