Permalink
Browse files

Added a sample uwsgi cache ini to the repo

  • Loading branch information...
1 parent 551a9f8 commit e81ee288fe3ca5b27b1da8754342b74ecc2007b7 @pajlada committed Feb 18, 2016
Showing with 15 additions and 0 deletions.
  1. +15 −0 uwsgi_cache.ini
View
@@ -0,0 +1,15 @@
+[uwsgi]
+log-micros = true
+
+cache2 = name=mycache,items=100
+
+route-if = empty:${cookie[session]} goto:cacheme
+route-run = continue:
+
+route-label = cacheme
+route-if-not = startswith:${REQUEST_URI};/api/ goto:cacheme2
+route-run = continue:
+
+route-label = cacheme2
+route = .* cache:key=${REQUEST_URI},name=mycache
+route = .* cachestore:key=${REQUEST_URI},name=mycache,expires=10

0 comments on commit e81ee28

Please sign in to comment.