vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Plugin Based Template Cache (https://vborg.vbsupport.ru/showthread.php?t=121876)

orban 01-02-2007 05:22 PM

navbar

is the template to be excluded.

Brew 01-02-2007 05:42 PM

Quote:

Originally Posted by orban (Post 1149270)
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?

DementedMindz 01-02-2007 05:46 PM

Quote:

Originally Posted by Brew (Post 1149267)
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

Brew 01-02-2007 05:56 PM

Quote:

Originally Posted by DementedMindz (Post 1149288)
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 :/

Brew 01-02-2007 06:46 PM

Quote:

Originally Posted by orban (Post 1149006)
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.

orban 01-03-2007 03:00 PM

I don't know then sorry :/

thincom2000 01-06-2007 05:11 PM

Quote:

Originally Posted by gothicuser (Post 1145220)
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

orban 01-07-2007 01:10 AM

Quote:

Originally Posted by thincom2000 (Post 1152043)
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.

thincom2000 01-07-2007 07:40 AM

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...

orban 01-07-2007 09:38 AM

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

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


All times are GMT. The time now is 04:20 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.01397 seconds
  • Memory Usage 1,746KB
  • 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)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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