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 :)


All times are GMT. The time now is 09:25 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
  • Page Generation 0.01128 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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