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 03-10-2007 11:30 AM

That modification released by mOo is nice, I'm using memcached though, but in the end it's basically the same thing.

Yeah compressing templates always causes problems.

I know, the newly released template cache by lendy just caches the templates in a variable cache. You won't save any eval() calls by doing this, you won't even avoid the unserialize as far as I know (just took at a quick glance at his code).

amcd 03-10-2007 01:21 PM

oh, I never thought about the evals. Yes, you are right. He cannot avoid evals by caching templates in variables.

Regarding the datastore, I installed memcache, but later went back to file because I could not notice any difference. Is there a way to benchmark the datastore?

orban 03-10-2007 01:25 PM

Well you could probably write a script to read the datastore objects 1000 times from memcached and flat files (cached in APC) and from APC var cache and see how fast it is :)

Frames 03-10-2007 01:46 PM

Hi, more info:

Without your plugin mysql use: 60 mb/sec

With your plugin mysql use: 30 mb/sec

Thanks!!!!!

Zia 03-10-2007 04:12 PM

Quote:

Originally Posted by amcd (Post 1200190)
oh, I never thought about the evals. Yes, you are right. He cannot avoid evals by caching templates in variables.

Regarding the datastore, I installed memcache, but later went back to file because I could not notice any difference. Is there a way to benchmark the datastore?

using that data store(xcache + its datastore cache)...
it straight reduce 2 more query at my forum home..
rcade home..it reduce 5 call...
so i think in other pages it also reduced....
yes forum got more smoother

Xplorer4x4 03-10-2007 04:32 PM

Quote:

Originally Posted by Zia (Post 1200030)
helo Xplorer..

umm u can have a try to use another cacher rather than APC.

Huh? I am not using nay other caches with this.

bluechris 03-10-2007 11:37 PM

I have a problem since i installed it.... suddenly the forum index shows a strange error

Quote:

Warning: Unterminated comment starting line 151 in C:\Domains\corollaclub.com\wwwroot\forums\forums.p hp(539) : eval()'d code on line 151
the line 151 in forums.php is this

Quote:

if ($vbulletin->options['showevents'])
Forums.php is the normal index.php that vb has but i had renamed it and i have index the cmps.

The thing is that the code in the file is fine.... even though i had replaced it with the latest and i still getting the error.

I had also uninstalled the addon with no luck...... I am with IIS6 .. php 4.4.6 with apc and mysql 4.1.16.

Anyone has any clue?

amcd 03-11-2007 08:55 AM

your error is on line 151 of the template which is called from line 539 of forums.php

bluechris 03-11-2007 10:41 AM

But i havent touched something.....

the lines in forumhome template are

Quote:

148 <!-- icons and login code -->
149 <table cellpadding="0" cellspacing="2" border="0" width="100%">
150 <tr valign="bottom">
151 <td>
152 <table cellpadding="2" cellspacing="0" border="0">
and in forums.php the 539 line is

Quote:

($hook = vBulletinHook::fetch_hook('forumhome_complete')) ? eval($hook) : false;
I even created a new style with no parent (that supposes will have the default templates) and i get the same error.... atm i have puted in php.ini showerrors to off and i dont see it but its a problem. Is there anyway that i can debug more the error? to be more specific i mean?

amcd 03-11-2007 10:47 AM

Line 539 is evaluating a hook, so look in your plugins, not in the template.

See which plugins are being executed on 'forumhome_complete'. One of them probably has a opening /* but no closing */


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