/** * Enable the query cache * * This does not take precedence over the \Elgg\Database\Config setting. * * @return void */ public function enableQueryCache() { if ($this->config->isQueryCacheEnabled() && $this->queryCache === null) { // @todo if we keep this cache, expose the size as a config parameter $this->queryCache = new \Elgg\Cache\LRUCache($this->queryCacheSize); } }