PDA

View Full Version : Administrative and Maintenance Tools - ZH - Template Cache


Ziki
01-31-2007, 10:00 PM
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Hack name
Template Cache

~Hack description
This hack lets you cache your not cached templates.Let's say you discover that there is one extra query for a not cached template.What now?You are too lazy to make a plugin so you just enter the name into a simple vb option and you are done :) (Sepparate by commas)

One of the most simple hacks ever done (only like 6 lines :p)

~Hack options

On/Off
Template to be cached


~Hack info
File uploads: 0
File edits: 0
Templates: 0
Template edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 5
Settings: 2
Hooks: 0

Install time: 3 sec
Install level: Easy

~Hack installation

Step 1: Import Product


~Hack screenshots
None


~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.

Ziki
01-31-2007, 10:06 PM
~Reserved~

beduino
01-31-2007, 11:05 PM
Tks for share!
You rock!
all the best
beduino

Ziki
01-31-2007, 11:09 PM
I don't rock I suck.This is the most easy code I ever wrote :-/

lovelypk
01-31-2007, 11:42 PM
Thanks for this Mod.
Keep it up

Exitilus
01-31-2007, 11:57 PM
So this reduces the amount of Queries needed (if a template is uncached) ?

Ziki
02-01-2007, 12:01 AM
If a template is not yet cached so yes.

Exitilus
02-01-2007, 12:07 AM
Also ... for where we put the Templates not cached. Do we put a space between them? colon? asteriks? chocolate bar? ;) heh ...

Edit: Awesome .. trying to speed things up on my site so .. this may help a lil

Ziki
02-01-2007, 12:09 AM
Into the vboptions sepparated by commas

Exitilus
02-01-2007, 12:10 AM
kk ... heh. Tried spaces didn't work. that was my next guess :)

Exitilus
02-01-2007, 12:15 AM
Hmmm Ok ... tried comma and they are still showing up uncached O.o

Ziki
02-01-2007, 12:23 AM
paste exactly how you typed it in

Exitilus
02-01-2007, 12:25 AM
mysmilies_imagebit,postbit_legacy,petz_postbit,cus tom_About,usercp_reputationbit s_gv,groups_usercp_groupsbits,adv_portal_randompro file

I've also tried a space after the comma and both after and before O.o

Ziki
02-01-2007, 12:39 AM
Try wrapping them in single quotes

Exitilus
02-01-2007, 12:42 AM
Nope :( If I just put one template name it works fine. But Multiple it won't.

Ziki
02-01-2007, 12:54 AM
Hm I look into this

bashy
02-01-2007, 08:26 AM
Hi Ziki

Just installed this and yeah ya can only add 1 template, i have tried multiple ways i.e. , . ; and so on , cant wait till its working 100% i have just been lazy with the uncached on my forum lol

Ziki
02-01-2007, 05:51 PM
1.0.1 released

Fixed the multiply templates thing

bashy
02-01-2007, 06:06 PM
Hi Ziki, fraid not, i have mine like this vbrecycle_sttv,brecycle_blank,vbrecycle_fdt and it aint working.... :(

rmxs
02-01-2007, 06:09 PM
Amazing :)

COBRAws
02-01-2007, 06:24 PM
Hi Ziki, fraid not, i have mine like this vbrecycle_sttv,brecycle_blank,vbrecycle_fdt and it aint working.... :(
ITs working for me, did you overwrite the product?

Ziki
02-01-2007, 06:29 PM
Yes I believe so he didn't

tanyeri24
02-01-2007, 06:34 PM
how find uncached templates?

Ziki
02-01-2007, 06:54 PM
You enable debug mode.For more info refer to vBulletin manual or install my debug mode hack ;)

bashy
02-02-2007, 07:45 AM
Working fine this morning, Sort of, It will cache 3 templates, but when i try to cache some webtemplates templates it wont cache them.
These are part of Logicans WebTemplates

Ziki
02-02-2007, 08:21 AM
Never heard of that hack

JohnBee
02-06-2007, 02:06 PM
Great hack! used and working like a charm - thanks for this. .thumbsup.

Ziki
02-06-2007, 05:46 PM
Glad you like it.But please somebody say I am an +++++++ that I am releasing this :)

JohnBee
02-07-2007, 06:31 PM
Glad you like it.But please somebody say I am an +++++++ that I am releasing this :)

You are an +++++++

Ziki
02-07-2007, 06:52 PM
Thank you :)

jw00dy
02-08-2007, 06:23 AM
Awesome hack, I had quite a few of these that weren't cached, now they are!!!

You are A++++++++

Installed.

Ziki
02-08-2007, 11:15 AM
OK I think calling me an +++++++ is now enough :p

bollie
02-12-2007, 02:58 PM
Template to be cached ???

Ziki
02-12-2007, 07:15 PM
Enabled debug mode,scroll to bottom and the ones in red are not cached

|Jordan|
03-19-2007, 01:53 AM
Comma doesnt work for me either, neither does comma and space. How can more templates be cached? (im using latest version and vb is 3.6.5)

Ziki
03-19-2007, 12:39 PM
Are you sure you are using latest?Try uninstalling and reinstalling

|Jordan|
03-19-2007, 05:32 PM
Ok it works now.

beduino
05-08-2007, 08:49 PM
Working fine :D Tks Ziki.
A question:
Uncached templates don't means [in general] bad function? I love this hack but... we can stay for ever with fix uncached templates?

Other question,
In case of multiples uncached templates we use commas or quotes?
Tks a lot
Beduino

BadgerDog
05-08-2007, 09:24 PM
Ok, can someone tell me exactly where to turn Debug Mode "ON"?

Thanks

Regards,
Badger

beduino
05-09-2007, 11:08 AM
Ok, can someone tell me exactly where to turn Debug Mode "ON"?

Thanks

Regards,
Badger
hi,
ziki has a debug mode hack and survivor hack you see https://vborg.vbsupport.ru/showthread.php?t=130212 here
all the best
beduino

BadgerDog
05-09-2007, 11:48 AM
hi,
ziki has a debug mode hack and survivor hack you see https://vborg.vbsupport.ru/showthread.php?t=130212 here
all the best
beduino

Thank you... :)

Appreciate that ...:up:

Regards,
Badger

paldo
05-09-2007, 02:18 PM
nice ty :)

yoyoyoyo
09-18-2007, 10:51 AM
best hack ever! should be standard in VB!

MissKalunji
10-01-2007, 02:35 AM
thank you!

Zachery
10-01-2007, 03:06 AM
Seems to me it'd be better just to cache the template to begin with ;)

MissKalunji
10-01-2007, 03:25 AM
i guess its for the lazy people like me :-p

why would it be better tho?

Ziki
10-01-2007, 12:30 PM
Seems to me it'd be better just to cache the template to begin with ;)


I think there are many hacks that here that don't have cached templates and somebody with no coding knowledge can find it useful :)

Zachery
10-02-2007, 09:00 PM
Someone with no coding knowlege should not be installing modifications, or making them ;)

MissKalunji
10-02-2007, 09:05 PM
lol thats true

Ziki
10-03-2007, 03:52 AM
nvm

PossumX
11-10-2007, 05:36 PM
On attempt to uninstall, I get the following error:

Fatal error: Direct Instantiation of vB_Database_Alter class prohibited. in /includes/class_dbalter.php on line 109

Not Good. The uninstall should be functional.

Why is this occurring, and what is going to be done to correct?

PossumX
11-25-2007, 03:10 PM
Nevermind. Had to disable the plugin for the uninstall to work properly. All set,

jarod1981?
01-07-2008, 05:50 PM
Hello

This Mod is compatible with vBSeo?

|Jordan|
05-23-2008, 10:11 PM
EDIT: NM, it works