如何清除APC缓存条目? [英] How to clear APC cache entries?

查看:104
本文介绍了如何清除APC缓存条目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

部署新版本的站点时,我需要清除所有APC缓存条目. APC.php有一个用于清除所有操作码缓存的按钮,但是我看不到用于清除所有用户条目,所有系统条目或所有按目录条目的按钮.

I need to clear all APC cache entries when I deploy a new version of the site. APC.php has a button for clearing all opcode caches, but I don't see buttons for clearing all User Entries, or all System Entries, or all Per-Directory Entries.

是否可以通过命令行或其他方式清除所有缓存条目?

Is it possible to clear all cache entries via the command-line, or some other way?

推荐答案

您可以使用PHP函数apc_clear_cache.

You can use the PHP function apc_clear_cache.

调用apc_clear_cache()将清除系统缓存,调用apc_clear_cache('user')将清除用户缓存.

Calling apc_clear_cache() will clear the system cache and calling apc_clear_cache('user') will clear the user cache.

这篇关于如何清除APC缓存条目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆