DboSource::_writeQueryCache PHP Method

_writeQueryCache() protected method

Writes a new key for the in memory sql query cache
protected _writeQueryCache ( string $sql, mixed $data, array $params = [] ) : void
$sql string SQL query
$data mixed result of $sql query
$params array query params bound as values
return void
    protected function _writeQueryCache($sql, $data, $params = array())
    {
        if (preg_match('/^\\s*select/i', $sql)) {
            $this->_queryCache[$sql][serialize($params)] = $data;
        }
    }
DboSource