Koha 16.11.04 - Setting a template cache directory
Colleagues, I just upgraded my test server to 16.11.04 (on Ubuntu 16.04), checked the Koha System Information under About, and saw the following:
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. Suggestions? Many thanks! Craig Butosi, MA, MLIS, B Mus (Hons.) LIBRARY SERVICES MANAGER the royal conservatory TELUS Centre for Performance and Learning 273 Bloor Street West Toronto, ON M5S 1W2 416.408.2824 x338 www.rcmusic.ca<https://webmail.rcmusic.ca/owa/redir.aspx?C=b481823b299d45ee94b0016389bb76e9&URL=http%3a%2f%2fwww.rcmusic.ca%2f> Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.
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.
Hi Mark, Thanks for responding. Sounds like a good place to park it; interestingly, and just as a point of information, I also found that the Performance Wiki page (https://wiki.koha-community.org/wiki/Performance) under Template Toolkit suggests </tmp> as another option, though this information may be outdated as it refers to Koha v.3.8. I’ll give < /var/cache/koha/<instancename>/templates > a try. Thanks! Craig Butosi, MA, MLIS, B Mus (Hons.) LIBRARY SERVICES MANAGER THE ROYAL CONSERVATORY TELUS Centre for Performance and Learning 273 Bloor Street West Toronto, ON M5S 1W2 416.408.2824 x338 www.rcmusic.ca -----Original Message----- From: Mark Alexander [mailto:marka@pobox.com] Sent: March-02-17 3:53 PM To: Craig Butosi Cc: koha Subject: 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. Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.
Excerpts from Mark Alexander's message of 2017-03-02 15:53:19 -0500:
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.
I forgot to mention that I also had to use chown to make that directory owned by the user associated with the instance: mkdir -p /var/cache/koha/INSTANCE/templates chown INSTANCE-koha:INSTANCE-koha /var/cache/koha/INSTANCE/templates
The best option is to help devs and test/sign the patches that make Koha handle this more smoothly: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17951 El jue., 2 de mar. de 2017 9:02 PM, Mark Alexander <marka@pobox.com> escribió:
Excerpts from Mark Alexander's message of 2017-03-02 15:53:19 -0500:
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.
I forgot to mention that I also had to use chown to make that directory owned by the user associated with the instance:
mkdir -p /var/cache/koha/INSTANCE/templates chown INSTANCE-koha:INSTANCE-koha /var/cache/koha/INSTANCE/templates _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
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@lists.katipo.co.nz] på vegne av Mark Alexander [marka@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@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
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@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@lists.katipo.co.nz] på vegne av Mark Alexander [marka@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@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Excerpts from Prof. Lisandro Laura's message of 2017-08-26 11:05:34 -0300:
Could anyone please point me to a simple step by step instruction to set <template_cache_dir> entry in my koha-conf.xml file?
As I mentioned in my earlier email, I created the cache directory as follows: mkdir -p /var/cache/koha/INSTANCE/templates chown INSTANCE-koha:INSTANCE-koha /var/cache/koha/INSTANCE/templates Then I added the following line at the end of the <config> section in /etc/koha/sites/INSTANCE/koha-conf.xml: <template_cache_dir>/var/cache/koha/INSTANCE/templates</template_cache_dir> In all of the above instructions, replace INSTANCE with your actual library instance name.
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@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@kul.oslo.kommune.no> Cc: koha <koha@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@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@lists.katipo.co.nz] på vegne av Mark Alexander [marka@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@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
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@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@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@kul.oslo.kommune.no> Cc: koha <koha@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@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@lists.katipo.co.nz] på vegne av Mark Alexander [marka@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@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
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@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@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@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@kul.oslo.kommune.no> Cc: koha <koha@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@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@lists.katipo.co.nz] på vegne av Mark Alexander [marka@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@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
participants (7)
-
Craig Butosi -
Doug Dearden -
Jonathan Druart -
Mark Alexander -
Petter Goksøyr Åsen -
Prof. Lisandro Laura -
Tomas Cohen Arazi