微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

PHP-APC与pecl uploadprogress

在drupal的状态报告页面中,我通常会找到此消息(在全新安装时):

Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.

但是我从来不明白为什么它比APC更喜欢PECL uploadprogress library,这就是我今天的问题.

pecl uploadprogress是否比APC更快,占用更少的系统资源或者更易于安装/配置/使用?

有谁知道为什么它比APC更受青睐? (有关APC和pecl uploadprogress的问题,googlin没有返回有用的信息)

解决方法:

博客文章的第二条评论中有一个有趣的信息:Upload Progress Meter – Common issues and some answers :(引用):

The main difference is: this
extension uses the filesystem as
temporary storage, APC uses shared
memory
. And if you’d like to use
another Bytecodecache than APC or do
not want to install APC for any
reason, this one provides that
functionality, too.

(博客文章和该评论均来自pecl::uploadprogress扩展程序的两位作者之一克里斯汀·斯托克(Christian Stocker);所以我想他知道他在说什么^^)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐