Questions tagged [apc]

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.

963 questions
19
votes
2 answers

Does autoload really kill performance when using APC(latest versions/up to date). Benchmarks?

I am trying to find a definite answer to the question that autoload kills performance when using APC and why(benchmarks?) P.S. Found this link using google/stackoverflow, but I am wondering if this still holds? PHP must been improved to handle this?…
Alfred
  • 60,935
  • 33
  • 147
  • 186
19
votes
7 answers

PHP with APC: Fatal errors: Cannot redeclare class

Since I installed APC for PHP with PECL I get sometimes these errors: Cannot redeclare class xxx xxx changes from time to time. I could disable APC but APC improves the performance great! Is there a known bug or could I do something else to prevent…
Poru
  • 8,254
  • 22
  • 65
  • 89
18
votes
1 answer

Symfony2 + Doctrine2 is not caching results of joined entities

I am using Symfony 2.0.10 with Doctrine 2.1 and have rather simple query (see below), where I want to cache results with APC (version 3.1.7, enabled 1GB of memory for it) via useResultCache(true, 600) and keep hydration mode as…
Anton Babenko
  • 6,586
  • 2
  • 36
  • 44
18
votes
3 answers

Optimize APC Caching

here is a link to how my APC is running : [removed] As you can see, it fills up pretty quickly and my Cache Full Count goes over 1000 sometimes My website uses Wordpress. I notice that every time I make a new post or edit a post, 2 things happen.…
GreatestSwordsman
  • 1,175
  • 5
  • 20
  • 39
18
votes
11 answers

best way to obtain a lock in php

I'm trying to update a variable in APC, and will be many processes trying to do that. APC doesn't provide locking functionality, so I'm considering using other mechanisms... what I've found so far is mysql's GET_LOCK(), and php's flock(). Anything…
tpk
  • 2,041
  • 5
  • 21
  • 29
17
votes
4 answers

magento client denied by server configuration

Magento isn't displaying anything but a white homepage, in the error_log the error given is: client denied by server configuration: /var/www/httpdocs/app/etc/local.xml I can access the admin area fine, does anyone know why this might happen?
Ashley
  • 5,939
  • 9
  • 39
  • 82
16
votes
4 answers

Is it good to have Memcache, APC and Varnish on LAMP servers

I have 3 web servers I need to optimize. I currently have just a little over 2000 unique visitors a day and I want to improve performances on my servers to make sure when I will get more traffic everything will run smooth. I read (on some blogs)…
Tech4Wilco
  • 6,740
  • 5
  • 46
  • 81
16
votes
6 answers

Install APC on Windows

How can I install APC on Windows? I am using PHP 5.3, Windows 7 x64. I used pecl install apc I got C:\PHP>pecl install apc downloading APC-3.0.19.tgz ... Starting to download APC-3.0.19.tgz (115,735 bytes) ............ done: 115,735 bytes 47…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
16
votes
3 answers

APC is showing 100% fragmentation

APC is showing 100% fragmentation. Is this bad? Does it mean that it's not helping at all? What paths do I go down to improve situation? Thanks in advance.
Daniel Fischer
  • 3,042
  • 1
  • 26
  • 49
16
votes
4 answers

php-apc for windows xampp

I need to install php-apc library on windows just to be able to keep developing my app on windows as well. I went to http://downloads.php.net/pierre/ and downloaded php_apc-3.1.10-5.3-vc9-x86.zip . The problem is know that inside the zip file, there…
Alex
  • 7,538
  • 23
  • 84
  • 152
15
votes
2 answers
15
votes
10 answers

__PHP_Incomplete_Class_Name wrong

We're randomly getting some very strange error logs. They don't happen on every page hit, even with the same parameters/actions/etc, and they don't seem repeatable, each one is different in its crash location, and context. But almost all have…
VexedPanda
  • 393
  • 1
  • 2
  • 15
15
votes
2 answers

What is the correct way to check if APC is installed and working?

I'm writing a wordpress plugin where the CSS is compiled dinamically and thus i've implemented various strategies to cache it. As of now the first choice for caching is APC if it's installed. This is how i'm checking it $is_apc_installed =…
Nicola Peluchetti
  • 76,206
  • 31
  • 145
  • 192
15
votes
3 answers

Is APC opcode cache shared between PHP-FPM pools/workers?

Internet has a lot of discussions that calling apc_cache_clear() in CLI does not clear opcode caches from "web" PHP processes, whether they are run inside Apache or by FPM (see How to clear APC cache entries? ). As a suggested solution, it's…
Ville Mattila
  • 1,343
  • 3
  • 15
  • 28
14
votes
1 answer

Progress bar with APC and Codeigniter - Trouble with IE and Chrome

I am trying to make a progress bar with Codeigniter and APC. Here's my form :
Lancelot
  • 573
  • 2
  • 5
  • 27
1 2
3
64 65