note 96403 added to function.filemtime
| From: | Tom at osu1 dot php dot net | Date: | Thu, 25 Feb 2010 10:45:09 +0000 |
| Subject: | note 96403 added to function.filemtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-166348@lists.php.net to get a copy of this message | ||
I was looking at using filemtime() as part of a browser cache busting technique for css/js/image
files and was considering whether caching the mtime using memcache would be beneficial to prevent
multiple file system calls.
1000 filemtime() calls (including clearing the stat cache between calls) vs. 1000 memcache reads.
filemtime() is significantly faster.
1000 filemtime() took: 0.004787
1000 memcache took: 0.075099
----
Server IP: 78.110.173.36
Probable Submitter: 81.179.238.246
----
Manual Page -- http://www.php.net/manual/en/function.filemtime.php
Edit -- https://master.php.net/note/edit/96403
Del: integrated -- https://master.php.net/note/delete/96403/integrated
Del: useless -- https://master.php.net/note/delete/96403/useless
Del: bad code -- https://master.php.net/note/delete/96403/bad+code
Del: spam -- https://master.php.net/note/delete/96403/spam
Del: non-english -- https://master.php.net/note/delete/96403/non-english
Del: in docs -- https://master.php.net/note/delete/96403/in+docs
Del: other reasons-- https://master.php.net/note/delete/96403
Reject -- https://master.php.net/note/reject/96403
Search -- https://master.php.net/manage/user-notes.php