src/PeskyCMF/Db/Traits/CacheableRecord.php
public function withCacheTimeout($timeout = null) {
        /** @var CmfDbRecord|CacheableRecord $this */
        $this->_cacheOnceTimeout = empty($timeout)
            ? $this->getTable()->getDefaultCacheDurationForSelectOneInMinutes()
            : $timeout;
        return $this;
    }
public function withCacheTimeout($timeout = null) {
        /** @var CmfDbRecord|CacheableRecord $this */
        $this->_cacheOnceTimeout = empty($timeout)
            ? $this->getTable()->getDefaultCacheDurationForSelectOneInMinutes()
            : $timeout;
        return $this;
    }
public function withCacheTimeout ( $ timeout = null ) { /** @var CmfDbRecord|CacheableRecord $this */ $ this -> _cacheOnceTimeout = empty ( $ timeout ) ? $ this -> getTable ( ) -> getDefaultCacheDurationForSelectOneInMinutes ( ) : $ timeout ; return $ this ; }
Set cache timeout for next read() or find() method call
@param null|int|\DateTime $timeout - int: minutes
@return $this
Set cache timeout for next read () or find () method call