在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);所以我想他知道他在说什么^^)