[Tickets #9092] Re: Could not save the compiled template file
bugs at horde.org
bugs at horde.org
Tue Jun 15 07:15:31 UTC 2010
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/9092
------------------------------------------------------------------------------
Ticket | 9092
Updated By | rsalmon at mbpgroup.com
Summary | Could not save the compiled template file
Queue | Horde Framework Packages
Version | Git master
Type | Bug
State | Feedback
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
rsalmon at mbpgroup.com (2010-06-15 03:15) wrote:
> Why should Template know about cache driver details?
It's not just Template I guess and it doesn't need to know about cache
drivers details.
Horde_Cache_Null functions are always returning false.
Using any of other Horde_Cache drivers, returning false means =>
failure/error.
So, my guess is that Template should checked if a cache driver is set,
eg != Null.
> If you want a no-caching layer, why not use the Mock driver?
I just saw a Mock driver file in Horde/Cache, but it isn't available
through the configuration menu (conf.xml):
<configswitch name="driver" desc="If you want to enable the Horde Cache,
select a driver here. This is used to speed up portions of Horde by storing
commonly processed objects.">file
<case name="Null" desc="Don't cache any objects"/>
<case name="Apc" desc="Use the APC cache"/>
<case name="Eaccelerator" desc="Use the eAccelerator cache (up to version
0.9.5)">
<configdescription>
eAccelerator must be built with --with-eaccelerator-shared-memory at
compile time to allow caching. <strong>WARNING:</strong> The
cache functionality has been removed with eAccelerator version 0.9.6. If
you want to use the eAccelerator cache driver, you need version 0.9.5 or
lower.
</configdescription>
</case>
<case name="File" desc="Store objects in filesystem">
<configsection name="params">
<configstring name="dir" required="false" desc="The location to
store the
cached files"/>
<configinteger name="sub" required="false" desc="If non-zero, the number
of subdirectories to create to store the file (see, e.g.,
http://php.net/manual/en/ref.session.php#ini.session.save-path). When
creating the directory tree, the md5sum of the cache id will be used.
Thus, each level of the tree will have up to 16 subdirectories named
[0-9a-f].">0</configinteger>
<configstring name="prefix" required="false" desc="The filename
prefix to
use for the cache files."/>
</configsection>
</case>
<case name="Memcache" desc="Use a Memcache server"/>
<case name="Sql" desc="SQL-based cache storage">
<configsection name="params">
<configsql switchname="driverconfig">
<configstring name="table" required="false" desc="The name of the
cache table in the database [horde_cache]"/>
</configsql>
</configsection>
</case>
<case name="Xcache" desc="Use the xCache cache"/>
<case name="Zps4" desc="Use the Zend Performance Suite output cache"/>
</configswitch>
More information about the bugs
mailing list