【发布时间】:2015-07-13 13:59:44
【问题描述】:
目前我正在使用 file_get_contents 从缓存中获取文件(即来自同一服务器的文件,我不需要 CURL 提供的不同选项。如果我使用 curl 而不是 @987654323,我会获得任何性能优势吗? @我的情况?
$cachepath="/dev/shm/cache";
$cachedfile=$cachepath."/".sha1($this->URL['href']);
$content=file_get_contents($cachedfile);
echo $content;
【问题讨论】:
标签: php curl file-get-contents