APC vs pecl uploadprogress

2019-07-04 16:59发布

In the Status Report page in drupal, i usually find this message (on fresh installation):

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.

But i never understood why its preferred the PECL uploadprogress library over APC, and that's my question today.

Is pecl uploadprogress faster, take less system resources, or is more easy to install/configure/use then APC?

Anyone have ideas about why it is preferred over APC? (googlin around for APC vs pecl uploadprogress doesnt return nothin usefull)

2条回答
做自己的国王
2楼-- · 2019-07-04 17:11

There is an interesting information in the second comment of this blog-post : Upload Progress Meter - Common issues and some answers : (quoting) :

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.

(Both the blog-post and that comment are from Christian Stocker, one of the two authors of the pecl::uploadprogress extension ; so I guess he knows what he's talking about ^^ )

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-07-04 17:25

Try to organize your uploads via flash. swfupload.org is the best solution. File will be uploaded by flash, and flash will take care about progress monitoring and it doesn't depend on server side. It also allows to select multiple files in "Browse file" window.

Pecl module is little hacky. APC gives more stable solution. But in 99% swfupload solves problem better.

查看更多
登录 后发表回答