![]() |
|
Article Options |
#31
|
||||
|
||||
Very useful info. I followed the instructions to remove the uncached ones thx.
![]() No members have liked this post.
|
#32
|
|||
|
|||
i have a php script that i am having trouble with. it is not written for vbulletin, but i would like to include it in my vb's template. this script has about 3-4 php files. i create a php file from which i run my script (followed the instructions from How to create a vbulletin powered page). i only include once the index.php of my script, which runs other php files from inside of it.
my problem is the following: when i run the script, everything is fine, the template is there etc. when i enter the details the script asks for, and i hit submit, the new window that opens does not have the vb template. i've tried everything, no luck. the window that opens when i hit submit has no action (etc. xxx.php?=something.) its just xxx.php. the funny thing is that if i have an error in my form, the template stays as it is even though a new window opens. the problem only occurs when i hit submit. please help ![]() No members have liked this post.
|
#33
|
|||
|
|||
My question is "Why"?
What does caching templates do? What benefit is there for the programmer and the end user? No members have liked this post.
|
#34
|
|||
|
|||
Caching templates means that all the templates are fetched with a single query at the beginning of the script, if you fetch un-cached templates during the script the script has to make database queries to fetch it. Thus using server resources that you don't need to.
No members have liked this post.
|
#35
|
||||||||||||
|
||||||||||||
Originally Posted by Princeton
That works for me too. So I need to have to plugins for one template. One to call it and one for caching it, right ?![]()
Call it
Cache it
and can I cache several templates in the same plugin ? Thanks ![]()
__________________
running vBulletin 4.0.6 No members have liked this post.
Last edited by Blackhat; 04 Oct 2008 at 11:56. |
![]() |
«
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 07:31.