2 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCache.php');
54 return $this->global_cache->isActive();
59 if ($this->global_cache->isActive()) {
70 if ($this->global_cache->isActive()) {
76 protected function readFromDB() {
81 $q =
'SELECT module, lang_array FROM lng_modules WHERE lang_key = %s';
84 while ($set = $ilDB->fetchObject(
$res)) {
85 $lang_array = unserialize($set->lang_array);
86 if (is_array($lang_array)) {
100 if (! isset(self::$instances[$key])) {
101 self::$instances[$key] =
new self($key);
104 return self::$instances[$key];
109 if ($this->global_cache->isActive()) {
110 $this->global_cache->flush();