PHPBuilder - Errata: phplib caching of files

RSS Twitter
Tips Html

Errata: phplib caching of files

by: Tom Anderson
November 2, 2000

I forgot to include some example code in my original submission:
$t = new template($templateDir);
$t -> set_cache(array("name" => "cachetest", "timeout" => 10));
$t -> set_file("main", "index.ihtml");
$t -> pparse("output", "main");

echo "this is not a cache.  This text will not appear on a cached page.";

Thanks, Tom

Comment and Contribute

Your comment has been submitted and is pending approval.

Tom Anderson



(Maximum characters: 1200). You have characters left.