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-21-2006 06:50 PM

This plugin works on my installation I swear to god!

Try downloading and importing with overwrite the product.xml again.

If you want to make sure, check there is an include_once in the plugin "include template_cache.php & clear template cache".

DementedMindz 04-21-2006 06:57 PM

working great now.. and i think this oneis much faster then the other one now that im able to test them both out :)

DementedMindz 04-21-2006 06:58 PM

lol just trying to figure out which templates i need to Exclude :(

orban 04-21-2006 06:58 PM

Aye, I had the impression too. I take you're also using a PHP cache of some sorts?

Quote:

Originally Posted by DementedMindz
lol just trying to figure out which templates i need to Exclude

Yeah can't help that. I don't know what the plugin authors thought with modifying templates on run time.

DementedMindz 04-21-2006 07:02 PM

yeah im using a php cache... is there a easy way to tell which templates to exclude?

orban 04-21-2006 07:04 PM

Hmmm, check your plugins for lines that modify "$vbulletin->templatecache". Not sure if that covers all of it though.

DementedMindz 04-21-2006 07:08 PM

yeah i had to add FORUMHOME is there any way to get around that so it will cache it but not remove the plugins?

orban 04-21-2006 07:14 PM

FORUMHOME will get cached to a file, just not to a seperate file.

I don't think that is possible, because the whole point of caching to a seperate file is to to avoid the eval(). But to do that, you can't modifiy the template at run time.

What plugin is it anyway? Maybe it's possible to realize it without the template modification at run time...

DementedMindz 04-21-2006 07:19 PM

yeah i may remove them plugins anyway lol this way it dont have that problem... but i can tell a big difference from the other cache

nix 04-21-2006 07:39 PM

working now. Just downloaded it again right now and worked this time.

orban 04-21-2006 07:42 PM

Haha, I'm so glad xD

MissKalunji 04-21-2006 08:37 PM

Very satisfied!

orban 04-21-2006 08:44 PM

*Phew

DementedMindz 04-21-2006 08:54 PM

Quote:

Originally Posted by MissKalunji
Very satisfied!


about time right orban

Tulsa 04-21-2006 10:46 PM

Greased lightening now!

Thanks! :)

orban 04-21-2006 10:51 PM

Quote:

Originally Posted by DementedMindz
about time right orban

:cool:

Quote:

Originally Posted by Tulsa
Greased lightening now!

Thanks! :)

glad to hear

Kihon Kata 04-21-2006 10:58 PM

So...Orban...with all this greased lightning talk, I wanted to just check again that upgrading from 1.0.0 to 1.0.2 WONT give me more performance?

MissKalunji 04-21-2006 10:59 PM

Quote:

Originally Posted by Kihon Kata
So...Orban...with all this greased lightning talk, I wanted to just check again that upgrading from 1.0.0 to 1.0.2 WONT give me more performance?

i think it does but its just ME

orban 04-21-2006 11:00 PM

If you used template_cache.beta.php there won't be any performance improvements.

If you used template_cache.php there might be ;)

Kihon Kata 04-22-2006 02:05 AM

Quote:

Originally Posted by orban
If you used template_cache.beta.php there won't be any performance improvements.

If you used template_cache.php there might be ;)

I just checked, Orban. I have a template_cache.php in my forum root and a folder called "templates". So I don't need to upgrade then? Sorry for the confusion.

MissKalunji 04-22-2006 02:07 AM

Quote:

Originally Posted by Kihon Kata
I just checked, Orban. I have a template_cache.php in my forum root and a folder called "templates". So I don't need to upgrade then? Sorry for the confusion.


go to plugin look at template cache and check the version ;) then ull know wich one you have

Kihon Kata 04-22-2006 03:20 AM

Quote:

Originally Posted by MissKalunji
go to plugin look at template cache and check the version ;) then ull know wich one you have

eh? I looked at the template_cache.php and there is no version in that php file.

Now, I did look in the product manager and found that I am at 1.0.0

Let me know what you think

Tulsa 04-22-2006 03:31 AM

The latest is 1.0.2

Kihon Kata 04-22-2006 03:36 AM

Quote:

Originally Posted by Tulsa
The latest is 1.0.2

I know that. That is why I am asking if I should upgrade.

MissKalunji 04-22-2006 03:44 AM

Quote:

Originally Posted by Kihon Kata
eh? I looked at the template_cache.php and there is no version in that php file.

Now, I did look in the product manager and found that I am at 1.0.0

Let me know what you think


Well yeah much more faster then 1.0.0

Worth upgrading

Kihon Kata 04-22-2006 03:52 AM

Quote:

Originally Posted by MissKalunji
Well yeah much more faster then 1.0.0

Worth upgrading

Which one are you using Kalunji?

MissKalunji 04-22-2006 03:53 AM

1.0.2

www.dancehallareaz.com/forum :)

Kihon Kata 04-22-2006 03:56 AM

Quote:

Originally Posted by MissKalunji

no, I mean beta or the other?

nix 04-22-2006 04:10 AM

Quote:

Originally Posted by orban
Haha, I'm so glad xD

Me too. Love this hack.

MissKalunji 04-22-2006 04:12 AM

Quote:

Originally Posted by Kihon Kata
no, I mean beta or the other?

the same one attached to this thread (i upgraded today)

Beta is done its full version now

Kihon Kata 04-22-2006 05:31 AM

Ok so I finally did it, I upgraded to 1.0.2 but I have a few questions. (imagine that! lol) I am trying to figure out which setting is better. I am running MySQL 4 (with caching) and ALSO caching PHP with eAccelerator. I have tried it with both settings of "Cache Templates Seperately" on and off. Seems that when I turn it off, it's much faster. Could be my imagination though.

Which way should I run this?


EDIT: Sorry I originally said I did NOT run eAccelerator....I was wrong, I do

Zia 04-22-2006 05:40 AM

hmm hello...
its template cache system.......

maybe a dumb question..what it do/
remove query? speed up forum? saving bandwidth ?
any one can say ?
thnx

orban 04-22-2006 09:29 AM

Zia: It saves one query per page, in addition, if you're using "Cache Templates Seperately" it might save a few eval() calls if you're using a PHP cache.

Kihon Kata 04-22-2006 03:58 PM

Thanks ORBAN for helping me in a private message. Ok, so back to my post ^^ there regarding which way should I run it?

orban 04-22-2006 04:32 PM

It's impossible for me to say what's better for you. It depends on so many things, just try it out. Can also try to increase the 4500 to 10000 for example, or 2000...can you try to find out if the files in the template folder actually get picked up by your template cache?

Kihon Kata 04-22-2006 04:37 PM

How can one do this?
Quote:

Originally Posted by orban
can you try to find out if the files in the template folder actually get picked up by your template cache?


orban 04-22-2006 04:44 PM

from the eAccelerator readme

Control panel and disassembler
------------------------------

If you want to use the control-panel you need to compile eAccelerator with
--with-eaccelerator-info which is the default value.
You need to copy the control.php file to your webroot and set the path to it
in the php.ini or eaccelerator.ini in the eaccelerator.allowed_admin_path
directive. If you don't do this you wont be able to see much information and
can't control eAccelerator.
You can set the username and password needed to access the control-panel in
the control.php file.

I *guess* that's the one.

Kihon Kata 04-22-2006 05:46 PM

Ok, I can view the ecc caching. I see that the /templates/ folder is being cached. What else did you need to know?

Quote:

Originally Posted by orban
It's impossible for me to say what's better for you. It depends on so many things, just try it out. Can also try to increase the 4500 to 10000 for example, or 2000...can you try to find out if the files in the template folder actually get picked up by your template cache?


orban 04-22-2006 05:47 PM

Both the files like 3d60b0358a7f117e7ee1c30e123ef0f3.php and 132.php? If you turn on seperate caching...

Then it doesn't really make sense that it's slower or not faster when you turn on seperate caching..mmmh.

Kihon Kata 04-22-2006 05:59 PM

Yep, I see files like 3d60b0358a7f117e7ee1c30e123ef0f3.php, about 10 megs of them. So, sorry to bug, but what kind's of advantages will setting it up so that it uses files like 123.php?


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.01351 seconds
  • Memory Usage 1,801KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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