不管刷新、重新访问页面多少次,页面显示时间2013年12月05日 20:03:31总是不变。
这是为什么呢?
回复讨论(解决方案) http://php.net/manual/en/function.fileatime.php
note:
the atime of a file is supposed to change whenever the data blocks of a file are being read. this can be costly performance-wise when an application regularly accesses a very large number of files or directories.
some unix filesystems can be mounted with atime updates disabled to increase the performance of such applications; usenet news spools are a common example. on such filesystems this function will be useless.
不同的文件系统使用都会不同的..
可以试下clearstatcache() 清除下缓存再读
你代码写的有问题,清楚缓存,访问时间还是没有变化。
