mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
cache can be set to outdated
This commit is contained in:
parent
0dc4f1a786
commit
0e6ff4a21d
1 changed files with 3 additions and 0 deletions
|
|
@ -485,6 +485,9 @@ class CacheValues:
|
|||
delta = (datetime.datetime.now() - self.creation_time).seconds
|
||||
return delta > self.cache_lifetime
|
||||
|
||||
def set_outdated(self):
|
||||
self.create_time = None
|
||||
|
||||
|
||||
class MongoSettingsHandler(SettingsHandler):
|
||||
"""Settings handler that use mongo for storing and loading of settings."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue