[Koha] Koha 16.11.04 - Setting a template cache directory

Jonathan Druart jonathan.druart at bugs.koha-community.org
Sat Sep 2 03:46:48 NZST 2017


Yes it does, see
https://wiki.koha-community.org/wiki/Benchmark_for_16.11#Template_caching

On Fri, 1 Sep 2017 at 12:17 Prof. Lisandro Laura <prof.llaura at gmail.com>
wrote:

> Hi!
> I did what Mark suggested... so far, so well...
> I think it is working... but I don't know if it improves performance or
> not...
> Now I'm tidying up things with log4perl.conf
> Thank you!
> Lisandro
>
> 2017-08-31 17:49 GMT-03:00 Doug Dearden <dearden at sarsf.org>:
> > Hi Prof,
> >
> > Here is what I did.  I have multiple instances/sites running, if you
> have more than one instance do this for each one.
> > Login to a terminal session on your server as a regular user (koha, not
> root)
> > cd /etc/koha/sites/(instance name)
> > sudo nano koha-conf.xml   This brings up the editor nano and loads the
> koha-conf.xml file into it.  Use a different editor if you are more
> familiar with it.  Scroll down to the bottom of the file.  Near the bottom
> you should see the tag </config>.  Add a line right above that that reads:
> > <template_cache_dir>/tmp/yourinstancename</template_cache_dir>
> > replacing yourinstancename with the instance/site name.  Save the file
> (in nano, Ctrl-o then Ctrl-x to exit).  Repeat for each instance/site you
> have.
> > Using your browser go to the staff interface for the site in question.
> Reload the About page.  The warning should be gone.  Check the OPAC also.
> > If things don't load normally or you get an error, go back and check
> your spelling.  A typo will break things. ;)
> > Back in your terminal session
> > cd /tmp
> > ls -all
> > You should see your instance names listed.  When you are happy that all
> is well:
> > exit
> >
> > Best,
> >
> > Doug Dearden, Director, IT
> > School for Advanced Research
> > PO Box 2188
> > Santa Fe, NM 87504-2188
> > 505-954-7220
> > www.sarweb.org
> >
> >
> > -----Original Message-----
> > From: Koha [mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Prof.
> Lisandro Laura
> > Sent: Saturday, August 26, 2017 8:06 AM
> > To: Petter Goksøyr Åsen <petter.goksoyr.asen at kul.oslo.kommune.no>
> > Cc: koha <koha at lists.katipo.co.nz>
> > Subject: Re: [Koha] Koha 16.11.04 - Setting a template cache directory
> >
> > Hello!
> > Could anyone please point me to a simple step by step instruction to
> > set <template_cache_dir> entry in my koha-conf.xml file?
> > Thank you in advance...
> >
> > 2017-03-03 4:12 GMT-03:00 Petter Goksøyr Åsen
> > <petter.goksoyr.asen at kul.oslo.kommune.no>:
> >> I would choose a path that's not on a spinning disc at least. Depending
> on your OS setup, /tmp is
> >> often mounted to RAM, so that's what I would use.
> >>
> >> Petter Goksøyr Åsen
> >> Deichmanske bibliotek / Oslo Public Library
> >> ________________________________________
> >> Fra: Koha [koha-bounces at lists.katipo.co.nz] på vegne av Mark Alexander
> [marka at pobox.com]
> >> Sendt: 2. mars 2017 21:53
> >> Til: Craig Butosi
> >> Kopi: koha
> >> Emne: Re: [Koha] Koha 16.11.04 - Setting a template cache directory
> >>
> >> Excerpts from Craig Butosi's message of 2017-03-02 13:42:07 +0000:
> >>> >You are missing the <template_cache_dir> entry in your koha-conf.xml
> file. That will bring a performance boost to >enable it.
> >>>
> >>> Is there an expected, standard, or best directory path to use? The
> error is clear enough; however, I'd like to define the directory with an
> appropriate path.
> >>
> >> In this bug comment:
> >>
> >>   https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17951#c2
> >>
> >> it was suggested that we use /var/cache/koha/<instancename>/templates,
> >> so that was what I used, and it seems to work fine.
> >> _______________________________________________
> >> Koha mailing list  http://koha-community.org
> >> Koha at lists.katipo.co.nz
> >> https://lists.katipo.co.nz/mailman/listinfo/koha
> >> _______________________________________________
> >> Koha mailing list  http://koha-community.org
> >> Koha at lists.katipo.co.nz
> >> https://lists.katipo.co.nz/mailman/listinfo/koha
> > _______________________________________________
> > Koha mailing list  http://koha-community.org
> > Koha at lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list