config/Database.php
protected function checkCache($name)
    {
        if (!isset($this->cache[$name])) {
            try {
                $config = $this->db
                    ->from($this->table)
                    ->where($this->columns['name'])->eq($name)
                    ->select()
                    ->fetchAssoc()
                    ->first();
                if (!$config) {
                    return false;
                }

                $this->cache[$name] = new ArrayHelper(unserialize($config[$this->columns['data']]));
            } catch (PDOException $e) {
                return false;
            }
        }

        return true;
    }
protected function checkCache($name)
    {
        if (!isset($this->cache[$name])) {
            try {
                $config = $this->db
                    ->from($this->table)
                    ->where($this->columns['name'])->eq($name)
                    ->select()
                    ->fetchAssoc()
                    ->first();
                if (!$config) {
                    return false;
                }

                $this->cache[$name] = new ArrayHelper(unserialize($config[$this->columns['data']]));
            } catch (PDOException $e) {
                return false;
            }
        }

        return true;
    }
protected function checkCache ( $ name ) { if ( ! isset ( $ this -> cache [ $ name ] ) ) { try { $ config = $ this -> db -> from ( $ this -> table ) -> where ( $ this -> columns [ 'name' ] ) -> eq ( $ name ) -> select ( ) -> fetchAssoc ( ) -> first ( ) ; if ( ! $ config ) { return false ; } $ this -> cache [ $ name ] = new ArrayHelper ( unserialize ( $ config [ $ this -> columns [ 'data' ] ] ) ) ; } catch ( PDOException $ e ) { return false ; } } return true ; }
Check if an item was cached

@param   string  $name

@return  boolean
Check if an item was cached