Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Plugin Based Template Cache Details »»
Plugin Based Template Cache
Version: 1.0.3, by orban orban is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.0 Rating:
Released: 07-22-2006 Last Update: Never Installs: 153
Uses Plugins
Additional Files  
No support by the author.

Removed on author's request.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #222  
Old 01-02-2007, 05:22 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

navbar

is the template to be excluded.
Reply With Quote
  #223  
Old 01-02-2007, 05:42 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by orban View Post
navbar

is the template to be excluded.
Naw....that didn't do it.

When looking at the source there is this:

Code:
<!-- breadcrumb, login, pm info -->
Should I include those? (each seperately?)

Or would that defeat the caching too much?
Reply With Quote
  #224  
Old 01-02-2007, 05:46 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brew View Post
There's another incompatibility

After enabling your template cache the "Count of unread posts in the welcome box" stopped working....The hack is here:
https://vborg.vbsupport.ru/showthread.php?p=1149261

Thanks again for your help!
i have both installed and they work together
Reply With Quote
  #225  
Old 01-02-2007, 05:56 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DementedMindz View Post
i have both installed and they work together
Thanks for your reply DementedMindz!

I got it to work but only after I disabled "Cache Templates Seperately".

Now off to figure out why :/
Reply With Quote
  #226  
Old 01-02-2007, 06:46 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by orban View Post
Exclude the following templates in the template cache settings:

bbcode_quote
bbcode_code
bbcode_highlight
bbcode_php
bbcode_html
This doesn't work when I use NO to Cache Templates Separately also. I don't think APC is installed atm anyway so it's better to be turned off.

I've looked all over and can't find other templates that other mod uses. Any ideas?

In case anyone is wondering....there are two issues I'm talking about...one is with the bbcode_quote mod and the other is the "Count of unread posts in the welcome box". The message here is the one about the bbcode_quote.
Reply With Quote
  #227  
Old 01-03-2007, 03:00 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know then sorry :/
Reply With Quote
  #228  
Old 01-06-2007, 05:11 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gothicuser View Post
I also notice that it is falling over only on the 'Header/Navbar' replacements that are entered into the vBAdvanced settings. e.g. I have entered replacements for obvious files such as login.php, private.php, memberlist.php etc. and when the template_cache is enabled these links do NOT function (they try to use the 'root' path).
You could modify the navbar to use variables and just set them in the page's code itself (to save a query). This way you can avoid the str_replace, and you don't have to exclude your navbar.

I actually installed this product just to cache my navbar, because it was slowing everything down.

Also, @orban, how would I go about adding templates to this template cache?
I have a number of custom templates that I'm using and I'm tired of seeing the message "4 queries for uncached templates" flash quickly just before the page loads.

I tried creating a plugin that adds the templates to $globaltemplates, but it ... oh, I forgot a closing ')'

This dramatically increases my page load time -- I had been getting complaints about 8 - 16 second page request times, followed by about another 3 - 4 for loading. Now most pages load in 1-2 seconds. XD
Reply With Quote
  #229  
Old 01-07-2007, 01:10 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thincom2000 View Post
You could modify the navbar to use variables and just set them in the page's code itself (to save a query). This way you can avoid the str_replace, and you don't have to exclude your navbar.

I actually installed this product just to cache my navbar, because it was slowing everything down.

Also, @orban, how would I go about adding templates to this template cache?
I have a number of custom templates that I'm using and I'm tired of seeing the message "4 queries for uncached templates" flash quickly just before the page loads.

I tried creating a plugin that adds the templates to $globaltemplates, but it ... oh, I forgot a closing ')'

This dramatically increases my page load time -- I had been getting complaints about 8 - 16 second page request times, followed by about another 3 - 4 for loading. Now most pages load in 1-2 seconds. XD
All sorted?

You have to add your custom templates to $globaltemplates that's correct.
Reply With Quote
  #230  
Old 01-07-2007, 07:40 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My custom templates were cached for about an hour, then they weren't cached anymore.

Don't know what to do now... Didn't change anything. Back up to 5 second load times.

Okay, so even though my setting for $vboptions[forumhome] is home.php, my navbar is attempting to go to index.php. And what do you know? Over half my templates folder vanished...
Reply With Quote
  #231  
Old 01-07-2007, 09:38 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's really weird. Files don't usually just disappear.

Have you tried to manually clear our your template cache folder?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05063 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete