![]() |
|
Article Options |
#16
|
||||
|
||||
I'm not sure what you mean. Have you asked the author of the hack?
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#17
|
||||
|
||||
princeton This article good for creating stand-alone pages, but I need wrote plugins, wich evalulate templates without modify standart forum code.
How ?
No members have liked this post.
|
#18
|
||||
|
||||
netwind,
follow the instructions found on this page: http://www.vbulletin.org/forum/showthread.php?t=99132
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#19
|
||||||||
|
||||||||
ok trying to follow this rule but still confused which i'm learning to cache this template because i have this on my forum
ok where here do i add the fuction to elimated that uncache...
thank you
__________________
Android Custom Creations ![]() No members have liked this post.
|
#20
|
||||
|
||||
add the template to the cache_templates hook (plugin):
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#21
|
||||
|
||||
Originally Posted by Princeton
thank you sir that worked ...
__________________
Android Custom Creations ![]() No members have liked this post.
|
#22
|
||||
|
||||
good day,
i using that method to cache template i implented a postbit marqee hack and for some reason that method won't work.
this error is being shown in showthread any idea's to fix problem... thanks in advance.
__________________
Android Custom Creations ![]() No members have liked this post.
|
#23
|
||||
|
||||
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.
No members have liked this post.
|
#24
|
|||
|
|||
Thanks for the explanation. It worked for me too.
No members have liked this post.
|
#25
|
||||
|
||||
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.
The only problem with this is that if you have only one template needed, merging the arrays instead of just adding yours on (using $globaltemplates[] instead of $mytemplates) is wasteful of resources. However if you're using lots of templates this should not be an issue. I would suggest using the microstats plugin to easily check everything is caching as it should. No members have liked this post.
|
#26
|
||||
|
||||
I need a little help.
This does catch template only in show thread page. But I need to cache the quickreply_addon template in new thread, new reply, pm reply/forward & infraction window too. What 'll be the code? Waiting for help. No members have liked this post.
|
#27
|
||||
|
||||
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
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#28
|
||||
|
||||
I used another plugin to cache this template with this code.
No members have liked this post.
|
#29
|
||||||||||||||||
|
||||||||||||||||
When writing my plugin code, the following doesn't work in the cache_templates hook (queries still added for uncached templates):
But the following does:
OR
Also if I don't add the following to the parse_templates hook I get a spike in page generation time and server load:
No members have liked this post.
Last edited by thincom2000; 20 Jan 2007 at 04:21. |
#30
|
||||
|
||||
Originally Posted by Icy
This does not even cache the template on showthread for me. Can any one tell me why this is not caching on show thread? ![]()
![]() No members have liked this post.
Last edited by Xplorer4x4; 31 Jan 2007 at 02:27. |
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 17:28.