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

Unified Diff: chrome/common/extensions/docs/server2/compiled_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/compiled_file_system.py
diff --git a/chrome/common/extensions/docs/server2/compiled_file_system.py b/chrome/common/extensions/docs/server2/compiled_file_system.py
index 051572b130102728b49a61515fb91c7890738733..1ee0887cfa0b654328ddfb86cd0caf4754ac33a6 100644
--- a/chrome/common/extensions/docs/server2/compiled_file_system.py
+++ b/chrome/common/extensions/docs/server2/compiled_file_system.py
@@ -89,13 +89,13 @@ class CompiledFileSystem(object):
will be ignored.
"""
version = self._file_system.Stat(path).version
- cache_entry = self._file_object_store.Get(path, time=0).Get()
+ cache_entry = self._file_object_store.Get(path).Get()
if (cache_entry is not None) and (version == cache_entry.version):
return cache_entry._cache_data
cache_data = self._populate_function(
path,
self._file_system.ReadSingle(path, binary=binary))
- self._file_object_store.Set(path, _CacheEntry(cache_data, version), time=0)
+ self._file_object_store.Set(path, _CacheEntry(cache_data, version))
return cache_data
def GetFromFileListing(self, path):
@@ -105,9 +105,9 @@ class CompiledFileSystem(object):
if not path.endswith('/'):
path += '/'
version = self._file_system.Stat(path).version
- cache_entry = self._list_object_store.Get(path, time=0).Get()
+ cache_entry = self._list_object_store.Get(path).Get()
if (cache_entry is not None) and (version == cache_entry.version):
return cache_entry._cache_data
cache_data = self._populate_function(path, self._RecursiveList(path))
- self._list_object_store.Set(path, _CacheEntry(cache_data, version), time=0)
+ self._list_object_store.Set(path, _CacheEntry(cache_data, version))
return cache_data

Powered by Google App Engine
This is Rietveld 408576698