gpt4 book ai didi

php - 如何在不使 Apache 崩溃的情况下清除 APC 缓存?

转载 作者:可可西里 更新时间:2023-11-01 00:07:40 27 4
gpt4 key购买 nike

如果 APC 存储了大量条目,清除它们会使 httpd 崩溃。

If apc_clear_cache('user') takes longer than phps max_execution_time the script calling apc_clear_cache will be terminated by php before the clearing-operation is finished. this seems to leave some handles or sth. that will prevent apache from closing it's processes.

( http://pecl.php.net/bugs/bug.php?id=13445 )

是否有其他快速但安全的批量清理 APC 缓存的方法?

最佳答案

您可以删除您正在运行的脚本的时间限制(只要您不在安全模式下运行 php)

set_time_limit(0);

这将取消脚本的时间限制

http://au2.php.net/manual/en/function.set-time-limit.php了解更多详情

关于php - 如何在不使 Apache 崩溃的情况下清除 APC 缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2228213/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com