Use mod_disk_cache for wordpress wp-content and moin static files
authorClinton Ebadi <clinton@unknownlamer.org>
Wed, 2 Apr 2014 20:18:27 +0000 (16:18 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Wed, 2 Apr 2014 20:18:27 +0000 (16:18 -0400)
lib/web_apps.dtl

index 5f783c8..76ef7ac 100644 (file)
@@ -16,7 +16,8 @@ val addWordPress = \ loc : (location) ->
 
 val wordPress = \ host : (host) ->
   web host with
-    addWordPress "/"
+    addWordPress "/";
+    diskCache "/wp-content"
   end;
 {{Create a WordPress blog with just the standard set-up code.  The WordPress blog should
   be rooted at the vhost's <tt>DocumentRoot</tt>.}}
@@ -30,7 +31,8 @@ val addMoinMoin = begin
   script <- Script;
 
   alias htdocs "/afs/hcoop.net/common/app/moin/installed/moin19/lib/python2.6/site-packages/MoinMoin/web/static/htdocs";
-  scriptAlias prefix (end_in_slash script)
+  diskCache htdocs;
+  scriptAlias prefix (end_in_slash script);
 end;
 {{Add a MoinMoin wiki to a vhost.}}