Skip to content

Commit 07362d9

Browse files
authored
Use default django cache timeoout (#253)
Fix #247
1 parent 5d6a54b commit 07362d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic_preferences/managers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def to_cache(self, pref):
109109
# resulting in more DB queries, so we cache an arbitrary value
110110
# to ensure the cache is hot (even with empty values)
111111
value = preferences_settings.CACHE_NONE_VALUE
112-
self.cache.set(key, value, None)
112+
self.cache.set(key, value)
113113

114114
def pref_obj(self, section, name):
115115
return self.registry.get(section=section, name=name)

0 commit comments

Comments
 (0)