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=113002)

orban 04-18-2006 07:40 PM

Huh. Weird. Did it show with the other version?

And try to clear the cache. Any PHP errors in your logs?

MissKalunji 04-18-2006 07:42 PM

Quote:

Originally Posted by orban
Huh. Weird. Did it show with the other version?

And try to clear the cache. Any PHP errors in your logs?


Yep used to show with old version

Yep Clear Cache

No Php errors in logs

orban 04-18-2006 07:45 PM

Is that welcome plugin an addon I can install to find out what happens?

MissKalunji 04-18-2006 07:48 PM

Yep a plugin that one : https://vborg.vbsupport.ru/showthread.php?t=83124

orban 04-18-2006 07:51 PM

Okay then I'll install it and find out what happens.

MissKalunji 04-18-2006 07:58 PM

oki dokie

orban 04-18-2006 08:05 PM

It's the way the cache works, it replaces the template with an include() statement.

The plugin replaces a certain string in a template with a new string, and because the template just consists of an include() it won't replace anything.

Sorry :( I don't think there is an easy way to fix this.

MissKalunji 04-18-2006 08:06 PM

ohhh ok uhm

MissKalunji 04-18-2006 08:08 PM

Theres More i had a BUMP thread Mod as well wich doesnt work either

orban 04-18-2006 08:10 PM

I'll try to add an array of templates to be excluded from being replaced with an include() statement. You'd have to find out which ones you have to exclude though...

Well then downgrade again until I get that working, disable the product, clear templates/, upload the old template_cache.php and enable it again.

MissKalunji 04-18-2006 08:14 PM

Thanks orban! you rock! They did that for template compressor to exclude some template to compress that would be fine!

orban 04-18-2006 09:30 PM

Updated the template_cache.beta.php file.

KissKalunji:

Code:

$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar ' . $vbulletin->templatecache[forumhome_welcomepanel],$vbulletin->templatecache['FORUMHOME']);
That's the problematic part of the Welcome Panel plugin. So you add FORUMHOME to $exclude. You know a bit of PHP?

Then check the other plugin for a smiliar line, just a template that gets modified, and exclude that one too.

I guess I should extend my plugin a bit and add two settings you can edit in the admincp instead of hardcoding it to the PHP file. Oh well.

MissKalunji 04-18-2006 10:09 PM

Sweet thanks! yeah i know php :)

Let u know how everything worked out

MissKalunji 04-18-2006 10:36 PM

works :) thanks!

Kihon Kata 04-19-2006 12:57 PM

Quote:

Originally Posted by orban
I guess I should extend my plugin a bit and add two settings you can edit in the admincp instead of hardcoding it to the PHP file. Oh well.

Let us know when you do this so I can install :)

orban 04-19-2006 01:12 PM

Scared to edit the PHP file? ;)

Kihon Kata 04-19-2006 01:17 PM

Quote:

Originally Posted by orban
Scared to edit the PHP file? ;)

Well, since I don't know php well, yes. LOL I wouldn't know where and what to edit ;)

I already run your last version, seems to work good. What will this version do for my site? Would you be willing help me out a bit?

MissKalunji 04-19-2006 01:19 PM

Quote:

Originally Posted by Kihon Kata
Well, since I don't know php well, yes. LOL I wouldn't know where and what to edit ;)

I already run your last version, seems to work good. What will this version do for my site? Would you be willing help me out a bit?


yeah it will make the board run faster i have it as well trust me it snot hard just adding the template thats IF you have mods that are messing up the forum

Kihon Kata 04-19-2006 01:34 PM

Quote:

Originally Posted by MissKalunji
yeah it will make the board run faster i have it as well trust me it snot hard just adding the template thats IF you have mods that are messing up the forum

Yeah, that could be the problem, we have MANY modifications. I'll wait to see what Orban says

MissKalunji 04-19-2006 02:07 PM

so far only two has problems :) and my board is heavy moded

Kihon Kata 04-20-2006 04:46 AM

knock knock, Orban, you there?

orban 04-20-2006 08:14 AM

Sorry yeah. Can't live here 24/7 ;)

You're running the template_cache.beta.php? If it works, what exactly is your problem then?

orban 04-20-2006 10:06 AM

Okay, I've added a few options that can be edited under "vBulletin Options".

Follow the green upgrade steps (you have to install both template_cache.php and product.xml, both files got updated).

template_cache.beta.php is now included in template_cache.php and can be enabled with the setting "Cache Templates Seperatly".

Please note that there is NO need to upgrade if it runs fine. There are no bugfixes/improvements included in this version. It's really just the few options I added that can be edited in the admincp. Nothing else.

SixteenOhNine 04-20-2006 09:12 PM

Seems with 3.5.4 I get the following error:

Code:

Fatal error: Cannot redeclare cache_templates_with_file_cache() (previously declared in /home/*****/public_html/template_cache.php:2) in /home/*****/public_html/template_cache.php on line 2

orban 04-20-2006 09:22 PM

Did you upgrade? Did you check Allow Overwrite?

You probably have all the plugins twice.

DementedMindz 04-20-2006 09:50 PM

i get the same error i even removed the product and reinstalled it and the same thing...

SixteenOhNine 04-20-2006 10:17 PM

Quote:

Originally Posted by orban
Did you upgrade? Did you check Allow Overwrite?

You probably have all the plugins twice.

Clean install, checked it even though not installed, same error :).

MissKalunji 04-20-2006 10:37 PM

mine still working fine *knocks on wood*

DementedMindz 04-20-2006 10:38 PM

lol lucky you i tried to upgrade to the newest one and poof broke lol

Tulsa 04-20-2006 10:50 PM

Code:

Fatal error: Cannot redeclare cache_templates_with_file_cache() in /home/*****/public_html/forums/template_cache.php on line 2

I just tried the install for the first time 3.5.3

MissKalunji 04-20-2006 11:05 PM

Quote:

Originally Posted by DementedMindz
lol lucky you i tried to upgrade to the newest one and poof broke lol

oh i didnt upgrade to the latest one it was kind of pointless :)

DementedMindz 04-20-2006 11:33 PM

yeah i shouldnt have either lol... now it dont work... ill install the other one back in again till they fixes this

MissKalunji 04-20-2006 11:41 PM

Quote:

Originally Posted by DementedMindz
yeah i shouldnt have either lol... now it dont work... ill install the other one back in again till they fixes this

tssss you should read more often :bunny: :banana: it didnt say if everything was working fine not to upgrade tsss

DementedMindz 04-20-2006 11:44 PM

Quote:

Originally Posted by MissKalunji
tssss you should read more often :bunny: :banana: it didnt say if everything was working fine not to upgrade tsss

lol yeah i just wanted to try out the new features lol... but really the other one seems like my site loads faster now... hmmm ill have to test both when they fix this one

nix 04-21-2006 05:32 PM

any word on a fix?

orban 04-21-2006 05:34 PM

Sorry, I'm not getting thread notifications.

Import to product.xml again, overwrite: yes.

It must be because my error reporting doesn't work or something, because I tried this plugin of course on a vanilla 3.5.4 installation before uploading.

orban 04-21-2006 05:51 PM

*send notify emails*

nix 04-21-2006 06:37 PM

nope, same error.

Code:

Fatal error: Cannot redeclare cache_templates_with_file_cache() in

orban 04-21-2006 06:41 PM

GREAT vbulletin.org didn't overwrite the old product.xml.

I think I'll scream now.

Try again, I'm really sorry about this mess. :(

nix 04-21-2006 06:48 PM

new error

Code:

Fatal error: Call to undefined function: clear_template_cache() in options.php(843) : eval()'d code on line 6


All times are GMT. The time now is 01:33 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.01424 seconds
  • Memory Usage 1,792KB
  • 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
  • (5)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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