2010年9月29日星期三

Re: [fw-mvc] safe mod and zend_cache

wow

i really work on this and trace it

that errror was from ZEND_DATE :-O !!

fixed by adding this :

$cache = Zend_Registry::get ( 'cache' );
$this->setOptions(array('cache' => $cache));

to my zend_date extended class :|

On Wed, Sep 29, 2010 at 11:54 PM, sina miandashti <miandashti@gmail.com>wrote:

> 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
>

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

没有评论: