When you did not set a cache_dir then your cache will use the temporary
directory.
When you do not give a cache to Zend_Locale then it will create it's own
cache, which of course uses also the temporary directory.
As there is actually no application wide support for Cache, the only thing
you could do is creating one yourself and attaching it manually to the
components which are using it.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Ralf Stadtaus" <forgene@gmail.com>
To: <fw-mvc@lists.zend.com>
Sent: Tuesday, December 08, 2009 5:44 PM
Subject: [fw-mvc] Configure "cache_dir" path globally
> Hi,
>
> When I'm using Zend_Cache::factory(), I define a "cache_dir" and
> everything works fine.
>
> Locale/Data.php does not allow (in any way) to define a "cache_dir".
> Thus, the getTmpDir() method invoked in order to find a temp dir. I
> could use ini_set or set an environment var in order to specify a temp
> dir, but I don't wont to do that. Is there a way to define a
> "cache_dir" globally?
>
> Ralf
没有评论:
发表评论