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

Unified Diff: app/models/package.py

Issue 952503002: When invalidating memcache, also invalidate the cache for dart (Closed) Base URL: https://github.com/dart-lang/pub-dartlang.git@master
Patch Set: Updating app.yaml to use version 33 Created 5 years, 10 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 | « app/app.yaml ('k') | 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 5a1060fdd747fc977ea13624905b528ada591d56..bc6bc1fef7e221b288452f00278f3e368540ad01 100644
--- a/app/models/package.py
+++ b/app/models/package.py
@@ -226,8 +226,14 @@ class Package(db.Model):
of the package are uploaded, the data will change.
"""
memcache.delete(self._package_json_cache_key)
+ memcache.delete(self._dart_package_json_cache_key)
@property
def _package_json_cache_key(self):
"""The memcache key for the cached JSON for this package."""
return 'package_json_' + self.name
+
+ @property
+ def _dart_package_json_cache_key(self):
+ """The Dart memcache key for the cached JSON for this package."""
+ return 'dart_package_json_' + self.name
« no previous file with comments | « app/app.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698