我正在尝试做的是检查一个图像的年龄,如果它超过60分钟,然后运行另一个php页面来获取图像,否则如果不到60分钟就什么也不做。/radar/auck0.png'; //Start the caching of the images........if (file_exists($imagename) and filemtime($imagename) + $cachetime > time()) {
e
我的问题是步骤2:返回服务器缓存的文件版本。在创建原始文件的位置上,我还发送了一些标头,以指示返回文件的类型,并允许客户端缓存该文件。当返回文件的服务器缓存版本时,如何发送相同的头?*60*24*14;
{// Serve from the cache if it is younger than $ca
在我的一个站点中,我使用了一个创建缓存文件的PHP脚本,我的问题是,我可以将这些.html文件存储在一个目录中吗?(top-cache.php)$cachefile = md5($cachefile).".html";
// Serve from thecache if it is younger than $
我正在使用本教程的来缓存页面$cachefile = $_SERVER['DOCUMENT_ROOT'].'cache.html';// Serve from the cache if it is younger than $cachetime
if (file_exists($cachefile) && time() - $cachetime < filemtime