Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2117)

Unified Diff: app/models/package.py

Issue 1134803003: Also invalidate the UI cache for a package (Closed) Base URL: https://github.com/dart-lang/pub-dartlang.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/models/package.py
diff --git a/app/models/package.py b/app/models/package.py
index dc385d23e4cb070e084141440e03324e6f4cf762..d601f5cc3e49f963dc927ca15446bccd7064a292 100644
--- a/app/models/package.py
+++ b/app/models/package.py
@@ -232,6 +232,7 @@ class Package(db.Model):
memcache.delete(self._package_json_cache_key)
memcache.delete(self._dart_package_json_cache_key)
+ memcache.delete(self._dart_package_ui_cache_key)
@property
def _package_json_cache_key(self):
@@ -242,3 +243,8 @@ class Package(db.Model):
def _dart_package_json_cache_key(self):
"""The Dart memcache key for the cached JSON for this package."""
return 'dart_package_json' + self.name
+
+ @property
+ def _dart_package_ui_cache_key(self):
+ """The Dart memcache key for the cached UI page for this package."""
+ return 'dart_package_ui' + self.name
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698