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

Unified Diff: chrome/common/extensions/docs/server2/branch_utility.py

Issue 10829348: Extensions Docs Server: Large performance increase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: server is fast Created 8 years, 4 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
Index: chrome/common/extensions/docs/server2/branch_utility.py
diff --git a/chrome/common/extensions/docs/server2/branch_utility.py b/chrome/common/extensions/docs/server2/branch_utility.py
index 187382cb82ade3df7a3c57354b41e279a6842a90..c0a694624c267b41d018684c37e3c642142a98be 100644
--- a/chrome/common/extensions/docs/server2/branch_utility.py
+++ b/chrome/common/extensions/docs/server2/branch_utility.py
@@ -40,7 +40,8 @@ class BranchUtility(object):
return channel_name
branch_number = self._memcache.Get(channel_name + '.' + self._base_path,
- memcache.MEMCACHE_BRANCH_UTILITY)
+ memcache.MEMCACHE_BRANCH_UTILITY,
+ time=86400)
if branch_number is not None:
return branch_number

Powered by Google App Engine
This is Rietveld 408576698