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

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

Issue 14218004: Devserver: only populate data during cron jobs, meaning all data from instances (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integration test Created 7 years, 8 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/github_file_system.py
diff --git a/chrome/common/extensions/docs/server2/github_file_system.py b/chrome/common/extensions/docs/server2/github_file_system.py
index 4f328cd3bf985c8697a81983f3406031e623e7fa..adbef9ed6f76cdaa9016d271e20553ae1ceb66d3 100644
--- a/chrome/common/extensions/docs/server2/github_file_system.py
+++ b/chrome/common/extensions/docs/server2/github_file_system.py
@@ -131,8 +131,11 @@ class GithubFileSystem(FileSystem):
def _DefaultStat(self, path):
version = 0
- # Cache for a minute so we don't try to keep fetching bad data.
- self._stat_object_store.Set(path, version, time=60)
+ # TODO(kalman): we should replace all of this by wrapping the
+ # GithubFileSystem in a CachingFileSystem. A lot of work has been put into
+ # CFS to be robust, and GFS is missing out.
+ # For example: the following line is wrong, but it could be moot.
+ self._stat_object_store.Set(path, version)
return StatInfo(version)
def Stat(self, path):
« no previous file with comments | « chrome/common/extensions/docs/server2/file_system.py ('k') | chrome/common/extensions/docs/server2/github_file_system_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698