2require_once(
'./Services/GlobalCache/classes/class.ilGlobalCache.php');
51 public function get() {
53 if ($ilGlobalCache->isActive()) {
54 $rec = $ilGlobalCache->get($this->cache_key);
56 $rec = $this->getFromDb();
57 $ilGlobalCache->set($this->cache_key, $rec, 600);
60 $rec = $this->getFromDb();
70 protected function getFromDb() {
90 if ($this->
getMode() == self::MODE_SINGLE) {
Class ilGlobalCacheQueryWrapper.
setFetchType($fetch_type)
__construct($cache_key, $query, $fetch_type=self::FETCH_TYPE_OBJECT, $mode=self::MODE_SINGLE)
static getInstance($component)