Home >Backend Development >PHP Tutorial >How to Clear All Cache Entries in APC: User Cache, System Cache or Both?
Managing APC Cache Entries: Clearing All Cache Options
Clearing specific portions of the APC cache (e.g., User Entries, System Entries, Per-Directory Entries) is not directly accessible through the APC.php interface. However, there are two methods available for clearing all cache entries:
1. Using apc_clear_cache('user')
Calling apc_clear_cache('user') from within PHP script will clear all user cache entries.
2. apc_clear_cache()
Calling apc_clear_cache() without any arguments will clear both the system and user cache entries.
The above is the detailed content of How to Clear All Cache Entries in APC: User Cache, System Cache or Both?. For more information, please follow other related articles on the PHP Chinese website!