Elgg\ViewsService::registerCacheableView PHP Метод

registerCacheableView() публичный Метод

public registerCacheableView ( $view )
    public function registerCacheableView($view)
    {
        $view = $this->canonicalizeViewName($view);
        $this->simplecache_views[$view] = true;
    }

Usage Example

Пример #1
0
 public function testCanRegisterViewsAsCacheable()
 {
     $this->assertFalse($this->views->isCacheableView('js/interpreted.js'));
     $this->views->registerCacheableView('js/interpreted.js');
     $this->assertTrue($this->views->isCacheableView('js/interpreted.js'));
 }