vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - ZH - Template Cache (https://vborg.vbsupport.ru/showthread.php?t=138067)

Ziki 01-31-2007 10:00 PM

ZH - Template Cache
 
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

Quote:

Originally Posted by bashy (Post 1172356)
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

Quote:

Originally Posted by Ziki (Post 1176152)
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

Quote:

Originally Posted by BadgerDog (Post 1243987)
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


All times are GMT. The time now is 06:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01674 seconds
  • Memory Usage 1,780KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete