Quote:
|
good day,
i using that method to cache template i implented a postbit marqee hack and for some reason that method won't work. Code:
$globaltemplates[] = 'Postbit_Marquee'; thanks in advance. |
I just cant get my head around adding "cache" to a product, to cache the templates.
Will you do me a favour Princeton or anybody else who knows how to do this. Take a look at my product code and add the cache code for me. So I can just paste it back in my XML file. Code:
<?xml version="1.0" encoding="ISO-8859-1"?> |
Thanks for the explanation. It worked for me too.
|
If you have a lot of templates which may not necessarily be used, you can save resources that would be used to cache unneeded templates by instead caching them dynamically based on whether or not they are needed. This does assume a bit of knowledge, but it's commented for clarity.
Let's say you have 10 templates, all of which can be enabled or disabled individually via a yesno option in your plugin. I'll just display 3 for the example. PHP Code:
I would suggest using the microstats plugin to easily check everything is caching as it should. |
I need a little help.
PHP Code:
|
THIS_SCRIPT changes from file to file ...
at the top of any file you will find THIS_SCRIPT defined ... this is the value that needs to be used on the conditional |
I used another plugin to cache this template with this code.
Code:
$globaltemplates = array_merge($globaltemplates, array('quickreply_addon')); |
When writing my plugin code, the following doesn't work in the cache_templates hook (queries still added for uncached templates):
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
All times are GMT. The time now is 09:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|