Documentation

Is_cached


Is_cached

Return true if the template is cached as static html. It's useful to drastically improve the loading speed of the template.

Example:

    $view = new View;
    if( !$view->is_cached('test') ){
         ... query and heavy operation ...
         $view->assign( "list", $query_results );

    }
    $view->draw( 'test' );