Caching templates if they exists.
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #5
RE: Caching templates if they exists.
Thanks Zinga, I use that method to cache one template by each gid reading the cache using $tempaltelist.

What I was really looking for was this:

PHP Code:
if($templates->cache['template_name_'.$gid])
{
	eval("\$val[$gid] = \"".$templates->get('template_name_'.$gid)."\";");
}


So that there will be no queries if template doesn't exists (wasn't cached at 'global_start').

Thanks.


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
05-20-2012 01:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Caching templates if they exists. - Sama34 - 05-07-2012, 01:50 PM
RE: Caching templates if they exists. - Sama34 - 05-20-2012 01:57 PM

 Standard Tools
Forum Jump: