apc Questions
3
Solved
I am using PHP with APC cache enabled:
apc.cache_by_default => On
apc.enabled => On
apc.ttl => 7200
Now how can I know if it is using the opcode cache 100%.
For example, let us say th...
1
Solved
APC works by storing the opcodes from PHP files in shared memory. When PHP is used with a web server (eg Apache) then the shared memory has a long life. When called from the commandline, then the A...
4
Solved
Does APC module in PHP when running in CLI mode support code optimization? For example, when I run a file with php -f <file> will the file be optimized with APC before executing or not? Presu...
Sulcate asked 7/8, 2009 at 14:56
7
Solved
I hope someone can give me a hand figuring this out. I have been running APC recently on some of my servers that host only one application and it's been working great. Unfortunately I went to run i...
Sycophant asked 17/4, 2011 at 5:21
3
Solved
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 cac...
Stratigraphy asked 12/10, 2012 at 13:46
5
I've heard of two caching techniques for the PHP code:
When a PHP script generates output it stores it into local files. When the script is called again it check whether the file with previous ou...
Myrticemyrtie asked 27/1, 2011 at 21:17
4
I am having trouble understanding the format required by the apc.filters directive in PHP APC configuration. (particularly for more than one patterns)
The manual says
"A comma-separated list of P...
1
Solved
First I had xCache installed on server, I had xCache on lot of my servers but in this one after couple of days you go nothing except a blank page with this error in apache error log:
child ...
4
Solved
I'm receiving this error while trying to use apc_store(). I googled it and saw that this was APC timebomb bug and saw some fixes which suggested adding apc.slam_defense = Off; to php.ini.
I need t...
2
Solved
I wonder if anyone has found any weird behaviours with apc_exists(), behaviour that causes the entire WAMP server to hang when using it together with apc_add() or apc_store()?
After a long session ...
3
Solved
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 doe...
2
Solved
I am using Vagrant and Puppet to install Apache and PHP on Ubuntu. However I am getting the error below during vagrant up. I think the path for the templates are correct, then why the error?
I'm u...
1
Solved
I've got the following code and the semaphore wouldn't lock it as expected.
(I'm aware of apc_inc. This is not what I'm looking for.)
$semkey = sem_get(123);
sem_acquire($semkey);
$count = apc_f...
4
Solved
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 ar...
1
Solved
So this is whats bothering me. I just installed APC cache and Im testing it.
When using APC Admin interface, in apc.php file, I can see all the info about APC etc.
When I go to System Cache Entries...
1
Solved
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...
1
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 d...
Analogue asked 14/10, 2012 at 22:25
2
Solved
Call to undefined method after upgrading to PHP 5.4.0 mentions a few APC bug-reports from March 2012.
My concrete question is: Is PHP 5.4.4 (or thereabouts) stable in combination with APC 3....
1
Solved
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...
4
Solved
Imagine you have the following array of integers:
array(1, 2, 1, 0, 0, 1, 2, 4, 3, 2, [...] );
The integers go on up to one million entries; only instead of being hardcoded they've been pre-gene...
Omasum asked 28/7, 2012 at 15:13
3
I just installed Magento Commerce on my hosting account and am getting fairly sluggish performance. To help speed up the site, I installed the APC cache but am having trouble getting it to work. I ...
Dictation asked 19/4, 2011 at 23:31
3
Solved
I'm using APC for storing a map of class names to class file paths. I build the map like this in my autoload function:
$class_paths = apc_fetch('class_paths');
// If the class path is stored in a...
1
Solved
On my new Xubuntubox I installed the lamp-server tools, php, php-apc, added the extension=apc.so line to the php.ini and rebootet the system. Apache and PHP seem to work well, but APC doesn't.
So ...
3
Solved
I am trying to understand (and probably deploy) memcached in our env.
We have 4 web servers on loadbalancer running a big web app developed in PHP. We are already using APC.
I want to see how memc...
4
Solved
APC lets you store data inside keys, but you cannot group these keys.
So if i want to have a group called "articles", and inside this group I would have keys that take the form of the article ID I...
© 2022 - 2024 — McMap. All rights reserved.