http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13053
Bug ID: 13053
Summary: Do not use template cache when from commandline
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Templates
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
You may define in config a folder (usually /tmp) for TT cache :
template_cache_dir in etc/koha-conf.xml.
Some perl pages may be launched from commandline, like tools/export.pl.
Also, the script gather_print_notices.pl uses C4::Templates.
The problem is that when script is launched from Apache, the Unix owner of
cache files will be www-data. When script is launched from commandline, like in
a cronjob, the Unix owner will be different (like a user named "koha"), causing
a crash because cache files can only be read by its owner.
I propose not to use the template cache if perl script is called from
commandline. This cache is certainly only useful for web access.
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/