[Koha-bugs] [Bug 7511] Caching Templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 10 09:54:16 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7511

--- Comment #3 from Paul Poulain <paul.poulain at biblibre.com> 2012-02-10 08:54:16 UTC ---
(In reply to comment #2)
> Just add to your Koha configuration file
> <template_cache_dir>/path/writable/by/apache/user</template_cache_dir>
> and Koha will use template caching, for about 10% CPU time saving.

1- don't forget to reload apache
2- to check that cache now work: (I assume that KOHA_DIR is /home/koha/src and
the cache dir is /tmp) there is now a directory /tmp/home/koha/src, with sub
directories, owned by apache user

I encountered a problem when trying to run NYTProf and caching at the same
time: the NYTProf is run as "paul" while Koha run as "apache2". Once you've
started running Koha with caching as one of those 2 users, you can't run a
script as the other user. This is because of linux permissions rwxr--r--
A little sudo rm -fr /tmp/home fixes this annoying problem if you need to run a
script as another user
a chmod +w+x could also work, I didn't tried

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list