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

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

Issue 10829348: Extensions Docs Server: Large performance increase (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/server_instance.py
diff --git a/chrome/common/extensions/docs/server2/server_instance.py b/chrome/common/extensions/docs/server2/server_instance.py
index 5c46aa21de13d1184ef4242f6d8cd0de5ce336b3..0995698dd5d7ec37c83a33c74dd0a4fbdbb80f74 100644
--- a/chrome/common/extensions/docs/server2/server_instance.py
+++ b/chrome/common/extensions/docs/server2/server_instance.py
@@ -7,6 +7,7 @@ import mimetypes
import os
from file_system import FileNotFoundError
+import file_system_cache as fs_cache
STATIC_DIR_PREFIX = 'docs/server2'
DOCS_PATH = 'docs'
@@ -21,7 +22,7 @@ class ServerInstance(object):
cache_builder):
self._template_data_source_factory = template_data_source_factory
self._example_zipper = example_zipper
- self._cache = cache_builder.build(lambda x: x)
+ self._cache = cache_builder.build(lambda x: x, fs_cache.STATIC)
mimetypes.init()
def _FetchStaticResource(self, path, response):

Powered by Google App Engine
This is Rietveld 408576698