Who's using APC?

Status
Not open for further replies.

imported_Brian

OMG Member
Oct 6, 2010
161
1
225
The Lion City
mrbrian.me
Yes, I do. I have it installed on my dedicated box. Better technologies = ftw so why not?


As for other tricks to increase server performance? A few as such;

-Tune the db settings - memory available for indexes, joins, sorts, max connections, timeouts)

-Tune forum settings - topic marking, who's online timescale. Does XenForo use it's own caching?

-Compress / optimize all .js, .css and .php files.
 

melbo

OMG Member
Dec 2, 2010
116
0
55
51
I'm using APC on my xentest alongside vB and vBSEO on a VPS. No problems except when I import a style: cache slams
 

Floris

I'm just me :) Hi.
Staff member
Jan 1, 2001
60,101
1,425
930
47
Netherlands
mrfloris.com
I'm using APC on my xentest alongside vB and vBSEO on a VPS. No problems except when I import a style: cache slams

Upgrade to Beta 4, which should have a work around for this. And let me know if it is fixed.
The future release of APC should have this addressed as well.
 

melbo

OMG Member
Dec 2, 2010
116
0
55
51
OK, just ran the upgrade to b4. I attempted to leave APC running and got cache slams when I ran the upgrade script. Commented APC out and ran the upgrade with no problems.

Tested the board and even changed some styling a bit and then went and uncommented APC in config.php. Had problems in the site and in the admin CP. Bad rendering, errors, "board needs to be upgraded", etc.

restarted apache (and with it APC), and everythign is fine now. I'm really hoping they get APC usage in xF a little more refined. I'll try to upload a style and see what happenes with APC running.
 

Floris

I'm just me :) Hi.
Staff member
Jan 1, 2001
60,101
1,425
930
47
Netherlands
mrfloris.com
Thanks for the update, sorry to hear you are still having problems with APC. I am glad beta4 and apache/apc restart helped fixed a few problems.

Do you have config.php set to use APC? This is what I use currently:

PHP:
$config['cache']['enabled'] = true;

$config['cache']['frontend'] = 'Core';

$config['cache']['frontendOptions'] = array(
                                        'caching'                      => true,
                                        'automatic_serialization'      => true,
                                        'lifetime'                      => 10800,
                                        'cache_id_prefix' => 'fans'
);

$config['cache']['backend'] = 'Apc';
 

melbo

OMG Member
Dec 2, 2010
116
0
55
51
Yep, I think I grabbed it from you awhile back. It's not a huge problem, just surprised it doesn't work more smoothly on upgrades, style imports and add-ons.

Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
                                        'caching'                                => true,
                                        'automatic_serialization'      => true,
                                        'lifetime'                                 => 10800,
                                        'cache_id_prefix' => 'xen'
);
$config['cache']['backend'] = 'Apc';

I just commented this whole part of config.php out with /* */ during the problems
 

Vodkaholic

OMG Member
Feb 8, 2011
296
0
75
uk
Yep i do also use apc

question why are you adding that to the config? my opcode cache's without the config details you have
 

Floris

I'm just me :) Hi.
Staff member
Jan 1, 2001
60,101
1,425
930
47
Netherlands
mrfloris.com
Not sure what you mean :/

But here is the config.php I use on rc2 here on xenfans.com, am I missing something?

Screen%20shot%202011-02-10%20at%204.41.06%20PM.png
 
  • Like
Reactions: 1 person

Vodkaholic

OMG Member
Feb 8, 2011
296
0
75
uk
Yea what i mean is why did you add that code to the config
I have not added any of that code to my config and my apc is still caching the file's
so my question is what does that code do?
Sorry my English is not great :(
 

Floris

I'm just me :) Hi.
Staff member
Jan 1, 2001
60,101
1,425
930
47
Netherlands
mrfloris.com
APC will work on your PHP files just fine, and tries to cache it as possible, for ipb, vb, wordpress, whatever you write yourself.

However, enabling the core engine of xenforo to use caching, and pointing out some of the settings, while giving it a domain unique prefix, helps optimize it. It's not required.
 

Stormraven

Trusted Member
Oct 24, 2010
1,836
0
150
35
Wales, UK
www.prowebforums.com
APC is now configured to work on my site. I must say that, I can't notice that much of a difference :-/ I'm sure it's quicker, but not noticeable. By the way all the articles sounded I expected it run at lightning speed lol.
 

Floris

I'm just me :) Hi.
Staff member
Jan 1, 2001
60,101
1,425
930
47
Netherlands
mrfloris.com
You are a new site. Get 50+ users online and it will still feel fast, get 150+ online and it will still feel fast.

Not noticing it being slow, is the purpose.
 
  • Like
Reactions: 1 person
Status
Not open for further replies.