, , , - .
, , . ,
, , tpl. tpl
{include file='head.html' cache_lifetime=5000}
or vice versa, delete the dynamic part of your page and put it in another template and include it as
{include file='head.html' nocache}
3. How to uniquely identify? Some pages have the same "name" but different content for certain members ... think "myProfile.php"
for the same page with different content, such as a profile page, you can pass the profile identifier as a parameter to cache the call.
$my_cache_id = $_GET['profile_id'];
$smarty->display('index.tpl', $my_cache_id);
This ensures that the same page with different parameters will not be considered the same page.
Hope this helps.
source
share