mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-15 15:22:17 +00:00
Add large expiry
This commit is contained in:
@@ -26,7 +26,7 @@ def stat_update_count(key, incr=1):
|
|||||||
try:
|
try:
|
||||||
cache.incr(key, incr)
|
cache.incr(key, incr)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
cache.set(key, incr)
|
cache.set(key, incr, 2592000)
|
||||||
|
|
||||||
class CachedDocumentManager(models.Manager):
|
class CachedDocumentManager(models.Manager):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user