This is my code:
$frontendOptions = array('lifeTime' => 10);
$backendOptions = array('cacheDir' => '../tmp/');
$cache = Zend_Cache::factory( 'Core',
'File',
$frontendOptions,
$backendOptions);
$cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);
$locale = new Zend_Locale('es_ES');
Zend_Registry::set('Zend_Locale', $locale);
Zend_Locale::setCache($cache);
$date = new Zend_Date('11-03-2010');
The script slows down when I try to create the Zend_Date object.
I'm using Zend 1.11.5 on MAMP (Mac / Snow Leopard).
Does anyone have any idea how can I speed up this?