TBS has a much more powerfull feature for you : caching. You generate your page only once, and as long as the "TimeToLive" is ok, the page is loaded for the disk without any calculus.
Extremely simple to use, and very powerfull, you can make a high trafic site without having your CPU down.
the basi syntax is :
if(!$tbs->CacheAction($page, 3600)){
$tbs->LoadTemplate("template.html");
here do you usual MergeBlock stuff
$tbs->Show();
}
|
$page is the internal name of your page, 3600 is the time to live of this page is sec
If the file stored on disk is not older than 3600 sec, TBS output it without further calculus, otherwise do the usual stuff and store the file on disk for next request.