private function _loadStrings() { $this->_connectMemcache(); if ($this->_memcache) { if ($this->_memcache->get($this->_memcacheKeyPrefix . $this->_lang . '_LOADED')) { $this->isStringsLoaded = true; Watt_Debug::addInfoToDefault('After load language string from memcache.(cached)'); return true; } Watt_Debug::addInfoToDefault('Before load language string from memcache.'); $langPath = Watt_Config::getLangPath() . $this->_lang . DIRECTORY_SEPARATOR; if (!file_exists($langPath)) { $langPath = Watt_Config::getLangPath() . "default" . DIRECTORY_SEPARATOR; } $this->_loadLangFilesInDir($langPath); //载入备用目录的语言文件 // //$langPath = Watt_Config::getLangPath(1).$this->_lang.DIRECTORY_SEPARATOR; //$this->_loadLangFilesInDir( $langPath ); $this->_memcache->set($this->_memcacheKeyPrefix . $this->_lang . '_LOADED', true); Watt_Debug::addInfoToDefault('After load language string from memcache.'); return true; } else { return false; } }