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

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

Issue 10834329: Extension docs server: many changes to bring down the latency of the server, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/file_system_cache.py
diff --git a/chrome/common/extensions/docs/server2/file_system_cache.py b/chrome/common/extensions/docs/server2/file_system_cache.py
index a38df42f3144f38d976663726606525c7d513dc6..53522e2d81d583c8286f09d7100d33d7a2393900 100644
--- a/chrome/common/extensions/docs/server2/file_system_cache.py
+++ b/chrome/common/extensions/docs/server2/file_system_cache.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import os
+from request_scoped_fs_cache import RequestScopedFsCache
class FileSystemCache(object):
"""This class caches FileSystem data that has been processed.
@@ -26,6 +27,9 @@ class FileSystemCache(object):
self._populate_function = populate_function
self._cache = {}
+ def ScopeToRequest(self):
+ return RequestScopedFsCache(self)
+
def _RecursiveList(self, files):
all_files = files[:]
dirs = {}
« no previous file with comments | « chrome/common/extensions/docs/server2/file_system.py ('k') | chrome/common/extensions/docs/server2/github_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698