[Groonga-commit] droonga/express-droonga at 82303e6 [master] Disable cache by --cache-size 0

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 25 14:43:23 JST 2014


Kouhei Sutou	2014-03-25 14:43:23 +0900 (Tue, 25 Mar 2014)

  New Revision: 82303e628fc1eb32f7568e74ab9e38b39b4934c5
  https://github.com/droonga/express-droonga/commit/82303e628fc1eb32f7568e74ab9e38b39b4934c5

  Message:
    Disable cache by --cache-size 0

  Modified files:
    application.js

  Modified: application.js (+8 -6)
===================================================================
--- application.js    2014-03-25 13:29:24 +0900 (9353cdd)
+++ application.js    2014-03-25 14:43:23 +0900 (6981b71)
@@ -38,12 +38,14 @@ application.configure(function() {
     store:  sessionStore
   }));
   application.use(responseTime());
-  application.use(cache({
-    size: options.cacheSize,
-    rules: [
-      { regex: /./ }
-    ]
-  }));
+  if (options.cacheSize > 0) {
+    application.use(cache({
+      size: options.cacheSize,
+      rules: [
+        { regex: /./ }
+      ]
+    }));
+  }
 });
 
 application.droonga({
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index