![]() |
Quote:
|
Quote:
I really have no idea why it doesn't work, maybe ask your host if they have any special setup? |
Quote:
Quote:
|
That shouldn't affect PHPs writing capabilities :/
|
helo Xplorer..
umm u can have a try to use another cacher rather than APC. |
Quote:
xcache.stat = on if u set it off. it wont work. |
Orban,
Helo.. can u say whats the difference between urs hack (this thread) & This One both is template cacher..really very much confused.. this 2 can be use together? (maybe ur on Xcache.im on xcache too) Thanks |
Quote:
If properly implemented, both should give similar benefits, but IMHO the other one needs some more work to become fully stable. Even after that, new users will continue to face problems because by default the opcode caching programs have the variable memory disabled. |
I don't think it avoids eval calls like mine does (which is the whole point of mine). It just saves the templates in the variable cache of apc/xcache/eac/mmcache and does some compressing. I also doubt they work together (mine will just overwrite his other the other way around).
You can't avoid the eval call unless you write the templates to files. |
Hi amcd,
Yes i noticed ,im on Xcache.the other one caching things at var. portion & didnt cache anything at php portion. at my end i have enabled var.cache using This which is relased by mOo aka phpxcache. Orban, finally other one tries to cache thing at var.cache instead of php cache and urs one cache to phpcache but the moto is allmost same ? just the way is difference ?? do u have any suggetions ? compress is diff.template compression always create probs as well. |
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). |
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? |
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 :)
|
Hi, more info:
Without your plugin mysql use: 60 mb/sec With your plugin mysql use: 30 mb/sec Thanks!!!!! |
Quote:
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 |
Quote:
|
I have a problem since i installed it.... suddenly the forum index shows a strange error
Quote:
Quote:
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? |
your error is on line 151 of the template which is called from line 539 of forums.php
|
But i havent touched something.....
the lines in forumhome template are Quote:
Quote:
|
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 */ |
reserved!!
|
Quote:
Quote:
|
helo orban,
here its ur experiemntal one ? https://vborg.vbsupport.ru/showpost....&postcount=242 i got spaces for using it...but could u plese be more specific...or can u just make the function.php or whatever.php files here .. i want to go for it..if it give more output...... Looking for ur help. Thnx. |
woot
|
Where can i get the opcode cache plugin?
|
Quote:
like Xcache /eAcc or APC ? Orban's mod will boost cacher.... if ur on xcache u can also try IT |
Quote:
You don't need any vBulletin modification to run APC/aAccelerator/xcache. |
Quote:
|
I just don't have the time right now to support this thing (I mean check the number of pages in this thread, and the experimental is indeed experimental and there's several issues to be worked out).
|
ah ha..Okay..
just thought it might be good than the existing one...so wanted to give a try.... Okay....but like this existing mods "boost up php cache" for any opcode cacher... is there any way to boost up var.cacher ? |
Disable the original plugin based template cache. Under your forums, create a new folder called 'cache' and make sure it is writable by the webserver user (www or nobody or similar).
Copy everything in the first code block and put it in a new php file. Save it as yourforums.com/forums/includes/functions_hooks.php Then, in your adminCP, open 'Add a new plugin'. Under hook location, select 'cache templates'. Under 'Plugin PHP code', put everything from the second code block in orban's post. Make sure 'active' is yes, give it a descriptive name like 'Orban's experimental template cache' and save it. That's it. If you ever make any changes to your templates, you have to manually delete forums/cache/*.php otherwise your template changes will not become active. If this interferes with any other plugin, then there is no remedy as of now. You have to either stop using the other plugin or go back to the old cache. |
thnx amcd..
seemd it will create probs (as Orban said). But does it make it any better than the existing one? |
It 'may' create problems, not 'will'. It is unsupported. So you can use it if you are confident or daring.
Don't listen to me, because if something bad happens, I may not be competent to help you. It is orban's creation, and if he says it is experimental and not fit for production boards, I guess it is not. But I am using it without any problems from the day he first posted it. edit: The only reason I am subtly urging you to use it is that I want more people to use it. That will probably put pressure on orban to develop it into a more mature solution. :) |
Quote:
more user more pressure developed version what r u using as opcode cacher ? how many ram did u allocate for that? what s ur experience about perfoamance gaining ? |
I am using xcache with lighttpd. I have allocated more, but 128 MB should be more than enough if you only have vbulletin.
Regarding performance gains, let us just say that I cannot imagine my forums running without xcache or this plugin. Come to think of it, I cannot imagine my forums running on apache. btw, if you are really looking for big performance gains and have some php/mysql knowledge, do try sphinx search. The sphinx implementation for vbulletin is also orban's creation, and it is just unbelievable to say the least. |
ah i think yet pit forum is not in the shape to impliment sphinx search.yes i read the whole thread for sphinx by orban.Still we are not that large in size....even not in bigboards
just saw ur board...do u mind to say ur server configuration ? dedicated ? but soon will install the new experimental one...maybe tomorrw night..... we got 320MB Ram + 1Gb burst ram. 128MB wont be a problem for us. |
I am using the experimental version. Since yesterday our users were reporting few problems. The php error logs show a lot of these errors.
Code:
Call to undefined function template_4789() in /usr/home/xb/www/bbb/includes/functions.php(4605) : eval()'d code on line 1 globaltemplates[] = 'option'; |
Have you recently installed an addon?
You can also try to exclude it, it's somewhere in the function....like I excluded the css templates. |
no, I have not installed any add-on.
I have gone back to the original mod for now, and it seems to be working fine. |
You could try to add "option" to
if (substr($template, 0, 17) == 'editor_jsoptions_' or substr($template, 0, 14) == 'editor_styles_') or $template == 'option' Or check what exactly is wrong on that line of code so I can maybe give you a fix... |
All times are GMT. The time now is 11:34 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|