Created
June 20, 2013 02:03
-
-
Save ytkhs/5819787 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| // delete APC Cache. | |
| // apache graceful とかでも消える。 | |
| if(function_exists('apc_clear_cache')) { | |
| if(apc_clear_cache()) { | |
| echo 'システムキャッシュをクリアしました</br>'; | |
| } | |
| else { | |
| echo 'システムキャッシュのクリアに失敗しました</br>'; | |
| } | |
| if(apc_clear_cache('user')) { | |
| echo 'ユーザーキャッシュをクリアしました</br>'; | |
| } | |
| else { | |
| echo 'ユーザーキャッシュのクリアに失敗しました</br>'; | |
| } | |
| } | |
| else { | |
| echo 'APCは利用されていません。'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment