DboSource::__destruct PHP Method

__destruct() public method

Used for storing in cache the results of the in-memory methodCache
public __destruct ( )
    public function __destruct()
    {
        if ($this->_methodCacheChange) {
            Cache::write('method_cache', self::$methodCache, '_cake_core_');
        }
    }
DboSource