Skip to content
Browse files

Added Lcoale Caching.

  • Loading branch information...
1 parent 49d939c commit 89d5e32b1caae19d4987d3872c6c149ef4daee05 @balupton balupton committed Nov 10, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/Bal/Bootstrap.php
View
14 lib/Bal/Bootstrap.php
@@ -11,6 +11,20 @@ protected function _initLocale ( ) {
$this->bootstrap('autoload');
$this->bootstrap('balphp');
+ # Set Local Cache
+ $Cache = Zend_Cache::factory(
+ 'Core',
+ 'File',
+ array(
+ 'lifetime' => 120,
+ 'automatic_serialization' => true
+ ),
+ array(
+ 'cache_dir' => CACHE_LOCALE_PATH
+ )
+ );
+ Zend_Currency::setCache($Cache);
+
# Locale
$Locale = new Bal_Locale($this->getOption('locale'));

0 comments on commit 89d5e32

Please sign in to comment.
Something went wrong with that request. Please try again.