plack enable memcached
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 2 Apr 2012 19:15:01 +0000 (21:15 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 30 May 2012 20:28:10 +0000 (22:28 +0200)
misc/plack/opac-plack.sh

index 9103cec..4007823 100755 (executable)
@@ -7,7 +7,13 @@ site=ffzg
 test ! -z "$1" && site=$1 && shift
 dir=`dirname $0`
 
-export KOHA_CONF=/etc/koha/sites/$site/koha-conf.xml 
+# enable memcache - it's safe even on installation which don't have it
+# since Koha has check on C4::Context
+export MEMCACHED_SERVERS=localhost:11211
+export MEMCACHED_NAMESPACE=$site
+export MEMCACHED_DEBUG=1
+
+export KOHA_CONF=/etc/koha/sites/$site/koha-conf.xml
 export OPACDIR="$( sudo -u $site-koha xmlstarlet sel -t -v 'yazgfs/config/opacdir' $KOHA_CONF | sed 's,/cgi-bin/opac,,' )"
 export LOGDIR="$( sudo -u $site-koha xmlstarlet sel -t -v 'yazgfs/config/logdir' $KOHA_CONF )"