Skip to content

Instantly share code, notes, and snippets.

@mabrahamde
mabrahamde / gist:7102842
Created October 22, 2013 15:33
Clear APC cache Depending on distribution and configuration the APC cache may use separate memory segment for CLI and module/FPM. Thus you have to run the commands from your browser.
<?php
/**
* Clear APC cache
*
* Depending on distribution and configuration the APC cache may use separate memory segment for CLI and module/FPM.
* Thus you have to run the commands from your browser.
*/
foreach(array('user','opcode','') as $cacheType ){