• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[Tip] Use APC

dieketzer

Well-known member
#61
so is running apc with suhosin not recommended then?
ive seen it said so in this thread, but my investigations into apc have not exposed this as a very common issue.
 

Ray

Active member
#63
Is there anything I should know before I enable/install APC?

Currently running a few sites powered by SMF 1.11, vBulletin 4.0 and xF RC2.
I don't want to break anything in the process lol.

Thanks
 
#65
Is there anything I should know before I enable/install APC?

Currently running a few sites powered by SMF 1.11, vBulletin 4.0 and xF RC2.
I don't want to break anything in the process lol.

Thanks
I don't think you will break anything, especially if you install it using a package manager (apt-get, yum, emerge etc.).

Having APC on your server and not using it will not 'harm' you but if you have it, use it :)
 

Ray

Active member
#67
Note: The cache_id_prefix is handy if you run more than one instance on the same server. Plus, I still recommend to set one, so it doesn't conflict with whatever else you might be running on the server :)
What exactly do you mean by that?
 
#71
Just as an FYI, this is an epic fail on Windows 2008, IIS, PHP536. The only binaries are for xp and w7, using either of them result in, well, nothing happening. Apc.php simply displays a message saying that APC is not running
 

RobParker

Well-known member
#72
Not sure if this is the correct place to ask but is the first post still applicable? Once APC is installed do I just add what's in the first post into my config and that's it?

It would also be good to have a guide or examples of what the default values should be for XF. I realise getting optimal vaalues is more complicated but some for a good starting point would be useful.
 

dieketzer

Well-known member
#73
Not sure if this is the correct place to ask but is the first post still applicable? Once APC is installed do I just add what's in the first post into my config and that's it?

It would also be good to have a guide or examples of what the default values should be for XF. I realise getting optimal vaalues is more complicated but some for a good starting point would be useful.
yes, it is still accurate.

the values in the first part are a good starting point.
 

Kier

XenForo Developer
Staff member
#74
I'd like to make myself clear on this - I personally do not recommend that you use APC for shared memory caching via your config file.

We use APC here for its opcode cache only, which it does automatically by virtue of being installed on your server. I do recommend that you have APC installed, for its opcode cache, which will massively speed up your page loads vs a system without APC.

If you want to use a shared-memory cache system, I'd recommend memcache, not APC.
 
F

Floris

Guest
#76
Basic instructions:

Install APC for PHP. And enable it.
Don't touch config.php, unless you have memcached, set caching on, a prefix, and the back-end to Memcached.
 

Deebs

Well-known member
#77
I'd like to make myself clear on this - I personally do not recommend that you use APC for shared memory caching via your config file.

We use APC here for its opcode cache only, which it does automatically by virtue of being installed on your server. I do recommend that you have APC installed, for its opcode cache, which will massively speed up your page loads vs a system without APC.

If you want to use a shared-memory cache system, I'd recommend memcache, not APC.
Kier,

I would be interested in your reasonings why you do not recommend APC.
 

RobParker

Well-known member
#80
Basic instructions:

Install APC for PHP. And enable it.
Don't touch config.php, unless you have memcached, set caching on, a prefix, and the back-end to Memcached.
I thought setting the memory size higher than the default was pretty vital else the memory fragmentation reaches 100% very quickly?