apc

What's APC alternative to?

APC (as in http://us3.php.net/manual/en/book.apc.php) stands for Alternative PHP Cache. What is it alternative to - is there another, built-in caching framework in PHP? ...

How to clear PHP APC from a Selenium test?

In my PHP Zend Framework application, I am using APC to cache certain repeat requests to the database. Within the application, I can clear the cache with this command:apc_clear_cache('user') I am also running PHPUnit Selenium tests against this application. Before adding APC, I had no problems. I have a test that adds a test user to the...

APC Fragmentation

Hello I have APC with my Wordpress website See my APC summary page here http://www.animefushigi.com/apc.php I notice I have a very high amount of fragments (over 10,000) Is this a bad thing? Will it decrease performance? ...

Problems upgrading APC 3.0.19 -> 3.1.4

On the gentoo Linux server I use, I've just upgraded APC from 3.0.19 to 3.1.4 and it appears as if something is not working properly there. It appears as if cache entries which should have been deleted (either explicitly or via TTL expiry) stay in place and so cache use keeps growing until it reaches the max usage memory and then the ser...

PHP APC uploads are never marked as complete

I have a LAMP setup running PHP 5.2.6-1 with the Suhosin Patch (0.9.6.2) and Zend (2.2.0) with APC enabled for use with a file upload script using an ajax cal to get the status and generate a progress bar. Everything appears to be working, the file uploads perfectly and is displayed correctly on the website or if you download it, but it...

Use APC to cache source files in PHP, does it work?

Hello I was browsing thru the docs of APC (Alternative PHP Cache) and I've seen that it has a function called apc_compile_file. The Docs say that this function is to: Stores a file in the bytecode cache, bypassing all filters. Is this like HipHop's idea, to store PHP code in more optimized code? If is not, can someone educate me...

php5-fpm doesn't work with php-apc on ubuntu 10.10

Packages php5-fpm and php-apc installed from ubuntu 10.10 official repo. APC configuration: /etc/php5/conf.d/apc.ini extension=apc.so apc.enabled=1 apc.shm_size=128M Afret php5-fpm restart: Fatal error: Call to undefined function apc_exists() in /var/www/.../application/models/user_model.php on line 271 phpinfo(); says apc module ...

Ignore caching of a specific file with APC

Is there a way to prevent a specific file from being opcode cached with APC? The use case is as follows: An application that sits on the cloud, which dynamically resizes itself (spinning up and down servers as required). The config.php script must know of the new IPs as they become available or unavailable. Since these changes happen f...

Install APC on PHP For Windows 7 x64

When I try to start Apache with [PHP_APC] extension = php_apc.dll [apc] apc.shm_segments=1 apc.optimization=0 apc.shm_size=128 apc.ttl=7200 apc.user_ttl=7200 apc.num_files_hint=1024 apc.mmap_file_mask=/tmp/apc.XXXXXX apc.enable_cli=1 in php.ini, it fails. I have the php_apc.dll in the ext directory. Using Apache 2.2.17 and PHP ...

Using APC to store data in arrays

Hello, I'm currently attempting to implement APC caching as a datastore in my web application. Currently, the system retrieves data directly from the MySQL database, and requires a database call per request. I'm currently attempting to change this by prepopulating the cache with data which is intercepted and served from the cache at e...

APC not storing data from MySQLi result array

Hello, I'm havin trouble storing an array of data. Below is the code use in the web application to check to see if the data is there, and if it's there serve it, else, cache it then serve it. I am using MySQLi $id = $db->real_escape_string($_GET['id']); $key = 'content_' . $app; $data = apc_fetch($key); if (!is_array($data)) { $r...