Arrilot\Widgets\Factories\WidgetFactory::getContentFromCache PHP 메소드

getContentFromCache() 보호된 메소드

Runs widget class otherwise.
protected getContentFromCache ( $args ) : mixed
$args
리턴 mixed
    protected function getContentFromCache($args)
    {
        if ($cacheTime = (double) $this->getCacheTime()) {
            return $this->app->cache($this->widget->cacheKey($args), $cacheTime, function () {
                return $this->getContent();
            });
        }
        return $this->getContent();
    }