Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit a1c2012

Browse files
author
Charles Ma
committed
BUG: fixed bug #161 Zend translate cache doesn't work with multiple ajax requests...
1 parent a017f20 commit a1c2012

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

library/MIDAS/controller/GlobalController.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,8 @@ public function __construct(Zend_Controller_Request_Abstract $request, Zend_Cont
3838
*/
3939
public function preDispatch()
4040
{
41-
// Init the translater
42-
if(!$this->isDebug())
43-
{
44-
$frontendOptions = array(
45-
'lifetime' => 86400, 'automatic_serialization' => true
46-
);
41+
// Init the translater
4742

48-
$backendOptions = array(
49-
'cache_dir' => BASE_PATH.'/tmp/cache/translation'
50-
);
51-
$cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);
52-
Zend_Translate::setCache($cache);
53-
}
5443
$translate = new Zend_Translate('csv', BASE_PATH.'/core/translation/fr-main.csv', 'en');
5544
Zend_Registry::set('translater', $translate);
5645

0 commit comments

Comments
 (0)