Hi Matthew,

This has always been the case.  Running with ZF 1.6.2 this does not happen
and Zend_Translate + Cache ignores CVS files and directories.

This is my directory under ZF 1.6.2:

17/11/2008  13:39                99
zend_cache---internal-metadatas---Magik_Zend_Translate_Csv
17/11/2008  13:39            26,363 zend_cache---Magik_Zend_Translate_Csv

Again, no changes to my code, just switching between 1.6.2 and 1.7.

For the record here is my code for the cache:

<snip>
        $frontendOptions = array(
            'automatic_cleaning_factor' => 0,
            'cache_id_prefix' => 'Magik_',
            'lifetime' => null
        );
        
        $backendOptions = array(
            'cache_dir' => CACHE
        );
        
        $cache = Zend_Cache::factory('Core', 'File', $frontendOptions,
$backendOptions);
        Zend_Translate::setCache($cache);
</snip>

Cheers,

- Robert

-----Original Message-----
From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] 
Sent: 17 November 2008 12:52
To: [email protected]
Subject: Re: [fw-general] Strange behaviour with Zend_Translate and caching
in 1.7 Sanity c heck release

-- Robert Castley <[EMAIL PROTECTED]> wrote (on Monday, 17 November
2008, 12:09 PM -0000):
> Hi,
>  
> I am just wondering why with the 1.7 release does Zend_Translate (with 
> caching) create so many cache files now?
>  
> Previously (in 1.6.x) there were only two cache files created now I 
> have all these, nothing has change in my code, just an installed of 1.7.
>  
> 17/11/2008  12:05                98
> zend_cache---internal-metadatas---Magik_Zend_Translate_Csv_Options
> 17/11/2008  12:05                99
> zend_cache---internal-metadatas---Magik_Zend_Translate_languages_CVS_E
> ntries_en_GB_Csv

Looks like you have your CVS directories in your deployment, and it's
scanning those directories when searching for the locale files -- giving you
extra and extraneous files.


________________________________________________________________________
This email has been scanned for all known viruses by the MessageLabs Email 
Security Service and the Macro 4 plc internal virus protection system.
________________________________________________________________________

Reply via email to