Home >Backend Development >PHP Tutorial >How to Clear All Cache Entries in APC: User Cache, System Cache or Both?

How to Clear All Cache Entries in APC: User Cache, System Cache or Both?

DDD
DDDOriginal
2024-10-29 14:46:02897browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn