Created
October 22, 2013 15:33
-
-
Save mabrahamde/7102842 to your computer and use it in GitHub Desktop.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ){ | |
apc_clear_cache($cacheType); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment