Elgg\Database::enableQueryCache PHP Method

enableQueryCache() public method

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