Caching templates if they exists.
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #7
RE: Caching templates if they exists.
I think I'm lost now. If I add the list of templates to the $templatelist at "global_start", those templates will be cached if they exists in the DB, right?

Then, the code above check if the template exists when running at "member_profile_end", because if I just eval the variable it will make the same check with the difference of a extra query to attempt (again) to get it from the DB.

The idea was to add my template list at global_start, and then eval() the variable only if the template was cached there, otherwise the variable was suppose to do nothing.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 05-21-2012 02:55 PM by Sama34.)
05-21-2012 02:54 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-21-2012 02:54 PM

 Standard Tools
Forum Jump: