
01-07-2007, 01:10 AM
|
|
|
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by thincom2000
You could modify the navbar to use variables and just set them in the page's code itself (to save a query). This way you can avoid the str_replace, and you don't have to exclude your navbar.
I actually installed this product just to cache my navbar, because it was slowing everything down.
Also, @orban, how would I go about adding templates to this template cache?
I have a number of custom templates that I'm using and I'm tired of seeing the message "4 queries for uncached templates" flash quickly just before the page loads.
I tried creating a plugin that adds the templates to $globaltemplates, but it ... oh, I forgot a closing ')'
This dramatically increases my page load time -- I had been getting complaints about 8 - 16 second page request times, followed by about another 3 - 4 for loading. Now most pages load in 1-2 seconds. XD
|
All sorted?
You have to add your custom templates to $globaltemplates that's correct.
|