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
  #292  
Old 03-10-2007, 11:30 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #293  
Old 03-10-2007, 01:21 PM
amcd amcd is offline
 
Join Date: Oct 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #294  
Old 03-10-2007, 01:25 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #295  
Old 03-10-2007, 01:46 PM
Frames Frames is offline
 
Join Date: Feb 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, more info:

Without your plugin mysql use: 60 mb/sec

With your plugin mysql use: 30 mb/sec

Thanks!!!!!
Reply With Quote
  #296  
Old 03-10-2007, 04:12 PM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amcd View Post
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
Reply With Quote
  #297  
Old 03-10-2007, 04:32 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zia View Post
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.
Reply With Quote
  #298  
Old 03-10-2007, 11:37 PM
bluechris bluechris is offline
 
Join Date: Nov 2006
Location: Athens. Greece
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #299  
Old 03-11-2007, 08:55 AM
amcd amcd is offline
 
Join Date: Oct 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your error is on line 151 of the template which is called from line 539 of forums.php
Reply With Quote
  #300  
Old 03-11-2007, 10:41 AM
bluechris bluechris is offline
 
Join Date: Nov 2006
Location: Athens. Greece
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #301  
Old 03-11-2007, 10:47 AM
amcd amcd is offline
 
Join Date: Oct 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 */
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 04:31 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.04987 seconds
  • Memory Usage 2,309KB
  • 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
  • (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
  • (1)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