2010年9月29日星期三

Re: [fw-mvc] safe mod and zend_cache

Dear mattew

i set that before in my boot strap (index.php)

$frontend = array (lifetime => 345600, automatic_seralization => true );
$backend = array ('cache_dir' => APPLICATION_PATH . '/cache/data/' );
$cache = Zend_Cache::factory('Core','File',$frontend,$backend);
$cache->setOption('automatic_serialization', true);


On Wed, Sep 29, 2010 at 11:38 PM, Matthew Weier O'Phinney
<matthew@zend.com>wrote:

> -- sina miandashti <miandashti@gmail.com> wrote
> (on Wednesday, 29 September 2010, 11:28 PM +0330):
> > safe mod in my server is preventing zend_cache from caching it shows this
> > exception :
> >
> > *Could not determine temp directory, please specify a cache_dir manually*
> > *
> > *
> > i talked to my webhost manager and he said they cant turn the safe mod
> off
> >
> >
> > what can i do?
> >
> > zend_cache not works with safemod?
>
> It can work with safe_mode fine -- but you need to tell Zend_Cache to
> use a directory within your application tree. Use the "cache_dir"
> backend option for the File backend to specify the directory.
>
> --
> Matthew Weier O'Phinney
> Project Lead | matthew@zend.com
> Zend Framework | http://framework.zend.com/
> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
>
>


--
________________
Sincerely
Sina Miandashti
MuSicBasE.ir & InvisionPower.ir Admin

没有评论: