Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Script fo APC cache clear.

Stéphane PY edited this page Nov 15, 2013 · 3 revisions
<?php
$keys = isset($_GET['keys']) ? $_GET['keys'] : null;
$keys = explode(',', $keys);

foreach ($keys as $key) {
    $iterator = new \APCIterator('user', sprintf('/%s/', $key));
    foreach ($iterator as $counter) {
        \apc_delete($counter['key']);
    }
}
Clone this wiki locally