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

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

Issue 10829348: Extensions Docs Server: Large performance increase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes and ObjectStore 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/samples_data_source.py
diff --git a/chrome/common/extensions/docs/server2/samples_data_source.py b/chrome/common/extensions/docs/server2/samples_data_source.py
index c712651e8a96453ec3ff98685e1fd2b40554d20b..cf37a2b0d2174ae07a73c01a2238c0baffd31e96 100644
--- a/chrome/common/extensions/docs/server2/samples_data_source.py
+++ b/chrome/common/extensions/docs/server2/samples_data_source.py
@@ -6,6 +6,7 @@ import json
import logging
import re
+import file_system_cache as fs_cache
import third_party.json_schema_compiler.json_comment_eater as json_comment_eater
import third_party.json_schema_compiler.model as model
import url_constants
@@ -31,9 +32,11 @@ class SamplesDataSource(object):
self._github_file_system = github_file_system
self._static_path = ((('/' + branch) if branch != 'local' else '') +
'/static')
- self._extensions_cache = cache_builder.build(self._MakeSamplesList)
+ self._extensions_cache = cache_builder.build(self._MakeSamplesList,
+ fs_cache.EXTENSIONS)
self._apps_cache = github_cache_builder.build(
- lambda x: self._MakeSamplesList(x, is_apps=True))
+ lambda x: self._MakeSamplesList(x, is_apps=True),
+ fs_cache.APPS)
self._samples_path = samples_path
def Create(self, request):

Powered by Google App Engine
This is Rietveld 408576698