mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 08:19:04 +00:00
[Update] 修改Org刷新cache
This commit is contained in:
@@ -27,7 +27,7 @@ class Organization(models.Model):
|
||||
|
||||
def expire_cache(self):
|
||||
key = self.CACHE_PREFIX.format(self.id)
|
||||
cache.set(key, self, 0)
|
||||
cache.set(key, self, 1)
|
||||
|
||||
@classmethod
|
||||
def get_instance_from_cache(cls, oid):
|
||||
|
Reference in New Issue
Block a user