Arrilot\Widgets\Factories\WidgetFactory::getContentFromCache PHP Method

getContentFromCache() protected method

Runs widget class otherwise.
protected getContentFromCache ( $args ) : mixed
$args
return 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();
    }