include_once( 'includes/pTemplate.php' ); $pTemplate->add_file( 'templates/cache_static_file.html' ); $output = $pTemplate->pparse_file( 'templates/cache_static_file.html' ); // cache footer file $pTemplate->cache( 'cache_static_file.html', $pTemplate::PCACHE_SET, $output ); echo $output; exit;
// GET a cached content include_once( 'includes/pTemplate.php' ); $footer = $pTemplate->cache( 'cache_static_file.html' ); if( empty($footer) ) { $pTemplate->add_file( 'templates/cache_static_file.html' ); $footer = $pTemplate->pparse_file( 'templates/cache_static_file.html' ); } echo $footer; exit;