How to remove APC cache fragment

Is it possible to separate a fragment of the APC cache or is the only parameter available to clear and rebuild it?
If we cannot separate it from the fragment, is it a good idea to flush the entire cache, clear it, and then reload the dump? is fragmentation clear?

+5
source share
3 answers

APC stores opcodes in ram. It does not have fragmentation control.

The only way to defragment is to clear the cache. Use apc_clear_cache () in a PHP script. Or restart httpd.

Note that APC will have to rebuild its cache.

( ) , APC . , , " " PHP?

+7

. - apc.php ( !), .

0

On Debian 8, install APC:

sudo apt-get install -y php5-apcu

Then copy apc.phpto your web root:

cp /usr/share/doc/php5-apcu/apc.php /var/www/html

Edit the file by changing ADMIN_USERNAMEand ADMIN_PASSWORD.

Then go to the apc.phpfile in the browser, log in and click Clear Cache.

0
source

All Articles