The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
Questions tagged [apc]
963 questions
6
votes
1 answer
Selecting an appropriate cache mechanism
My setup:
4 webservers
Static content server (NFS mount)
2 db servers
2 "do magic" servers
An additional 8 machines designated multi-purpose.
I'm writing a wrapper for three caching mechanisms so that they can be used in a somewhat normalized…

jasonbar
- 13,333
- 4
- 38
- 46
6
votes
2 answers
How APC opcode cache works
Can I use apc opcode cache if I can (not must) have unique content for each visitor on same page? I'm not sure I understand how opcode working. If only save php result to cache and serving it like "html", then it's useless for me. I definitely need…

stix
- 812
- 2
- 7
- 22
6
votes
5 answers
PHP: Using APC as general cache, XCache as opcache, possible?
I'm really intreagued by the general cache aspects of APC and want to use it in my code (this I know how to do, this is not the problem).
However, I'm using XCache as opcache now and want to continue to do so since I have it tweaked "just right" for…

Adergaard
- 61
- 1
- 2
6
votes
2 answers
Magento how to cache a productCollection
Ive noticed my home page is taking a long time to load - over 6 seconds infact according site24x7.com, so ive been switching elements off to try and determine what is the cause, and it is down to 2 product collection files I have made to show new…

Tom Dollar
- 149
- 1
- 4
- 12
6
votes
3 answers
active APC in php
I have installed APC PHP in my server. PHPinfo is showing it. But just got a question as I am a bit confused...
will new PHP requests coming to the server will start using APC automatically or does php codes also need to be modified to make use of…

Sangfroid
- 1,323
- 3
- 9
- 5
6
votes
1 answer
What does APC do with static content
Let's say that I force mod_php to take in .html files. Let's say that there's 0 PHP code in one of these files.
If I browse to that file with APC enabled, what happens? Does it get cached or does it still have to be read from the disk?
The other…

nwalke
- 3,170
- 6
- 35
- 60
6
votes
1 answer
APC serialization slow?
Example:
$arr = array();
for($i = 5; $i < 300000; $i++)
$arr[$i] = 'foo';
apc_store('data', $arr);
It takes like 15 seconds. To get the data it takes around 0.7s.
But if I serialize the data with php and store it like that with…

Alex
- 66,732
- 177
- 439
- 641
6
votes
1 answer
APC not speeding up PHP 5.4
I have had this problem before on WAMP Server and PHP 5.3, and now facing it on Linux with PHP 5.4.
Basically, APC enabled or disabled makes no difference in performance, despite what the stats in apc.php say.
Here is a sample test script, which…

BenMorel
- 34,448
- 50
- 182
- 322
5
votes
1 answer
Installing php_apc.dll on wampserver
I need your help. I'm trying to install php_apc.dll into my
php directory.
So far this is what i've done:
I copied php_apc.dll to c:\wamp\bin\php\php5.3.0\ext. I've also restarted the server several times.
But when i checked
…
user652792
5
votes
1 answer
APC on PHP 5.3.10/Apache 2.2.21
I tried to install APC on my wamp(PHP 5.3.10/Apache2.2.21). OS which i`m using is Windows 7.
I downloaded 'APC 3.1.9 for PHP 5.3 vc9 (Win7/2008)' dll from http://dev.freshsite.pl/php-accelerators/apc.html.
I copied php_apc.dll to…

22db05
- 675
- 1
- 9
- 13
5
votes
2 answers
apc_exist() does not exist?
I'm having some hard time getting PHP APC to work. Here's my test code:

mingos
- 23,778
- 12
- 70
- 107
5
votes
3 answers
Should I use PHP accelerator (eAccelerator, APC, etc) in development environment?
I think the question speaks for itself..
My concern is, we would be modifying some PHP files here and there. Will the accelerator(s) know that it needs to recompile modified files (i assume they would, common sense)?
However, i didnt find any…

mohdyusuf
- 351
- 1
- 3
- 12
5
votes
6 answers
Problems with APC on publish
We've recently enabled APC on our servers, and occasionally when we publish new code or changes we discover that the source files that were changed start throwing errors that aren't reflected in the code, usually parse errors describing a token that…

Jeremy DeGroot
- 4,496
- 2
- 20
- 21
5
votes
2 answers
APC cache isolation in a multi tentant setting (cakephp)
I am using cakephp to run a multi-tenant application. There is only 1 instance of the app, the only difference being the database each app connects to. Other than that, the app is identical.
My setup:
Apache 2.2
Php 5.3
cake 1.3.10
Win 2k3…

aks
- 255
- 3
- 15
5
votes
5 answers
installing PHP APC extension on windows
I want to install the APC extension for PHP. I've got to this page and I'm a little stuck.
I've downloaded a file from here, which gives me a APC-3.1.9.tgz file.
I've extracted the file. However from the page I've mentioned above, I'm given the…

Gary Ryan
- 744
- 3
- 8
- 19