示例#1
0
def clear_release_environment_project_cache(instance: ReleaseEnvironment,
                                            **kwargs: Any) -> None:
    release_project_ids = instance.release.projects.values_list("id",
                                                                flat=True)
    cache.delete_many([
        get_project_release_cache_key(proj_id, instance.environment_id)
        for proj_id in release_project_ids
    ])
示例#2
0
def clear_release_cache(instance, **kwargs):
    release_project_ids = instance.projects.values_list("id", flat=True)
    cache.delete_many([
        get_project_release_cache_key(proj_id)
        for proj_id in release_project_ids
    ])
示例#3
0
 def clear_cached_photos(self):
     cache.delete_many([self.get_cache_key(x) for x in self.ALLOWED_SIZES])
示例#4
0
文件: avatar.py 项目: Kayle009/sentry
 def clear_cached_photos(self):
     cache.delete_many([self.get_cache_key(x) for x in self.ALLOWED_SIZES])
示例#5
0
 def clear_cached_photos(self):
     cache.delete_many(map(self.get_cache_key, self.ALLOWED_SIZES))
示例#6
0
 def clear_cached_photos(self):
     cache.delete_many(map(self.get_cache_key, self.ALLOWED_SIZES))