src/controller/PageSliceController.php
public function getTemplate()
    {
        if (!$this->useCaching()) {
            $result = $this->renderTemplate();
        } else {
            $cache = Injector::inst()->get(CacheInterface::class . '.PageSlices');
            if (!$cache->has($this->getCacheKey())) {
                $result = $this->renderTemplate();
                $cache->set($this->getCacheKey(), $result);
            } else {
                $result = $cache->get($this->getCacheKey());
            }
        }

        return $result;
    }
public function getTemplate()
    {
        if (!$this->useCaching()) {
            $result = $this->renderTemplate();
        } else {
            $cache = Injector::inst()->get(CacheInterface::class . '.PageSlices');
            if (!$cache->has($this->getCacheKey())) {
                $result = $this->renderTemplate();
                $cache->set($this->getCacheKey(), $result);
            } else {
                $result = $cache->get($this->getCacheKey());
            }
        }

        return $result;
    }
public function getTemplate ( ) { if ( ! $ this -> useCaching ( ) ) { $ result = $ this -> renderTemplate ( ) ; } else { $ cache = Injector :: inst ( ) -> get ( CacheInterface :: class . '.PageSlices' ) ; if ( ! $ cache -> has ( $ this -> getCacheKey ( ) ) ) { $ result = $ this -> renderTemplate ( ) ; $ cache -> set ( $ this -> getCacheKey ( ) , $ result ) ; } else { $ result = $ cache -> get ( $ this -> getCacheKey ( ) ) ; } } return $ result ; }
Return the rendered template

@return \HTMLText
Return the rendered template