I don't seem to understand. What happens if new files are created in that folder? It will still display the old cache file? So caching only works with static pages?
@36206090193 For web sites, caching is basically making a static page (To prevent resource processing on the server). If a new file is created, it should Overwrite the old file. So if you have an index.php file, and you updated it through a CMS a few times, you should only have 1 Cached copy total..
Excellent screencast. Thanks.
briandickson1965 10 months ago
@briandickson1965 Thanks! Obviously youd want a more robust solution but it gives the idea!
JREAMdesign 10 months ago
I don't seem to understand. What happens if new files are created in that folder? It will still display the old cache file? So caching only works with static pages?
36206090193 1 year ago
@36206090193 For web sites, caching is basically making a static page (To prevent resource processing on the server). If a new file is created, it should Overwrite the old file. So if you have an index.php file, and you updated it through a CMS a few times, you should only have 1 Cached copy total..
JREAMdesign 1 year ago
Thanks! This really helped me understand caching.
imonsay89 1 year ago
I made a caching class, I guess I sent you a link through msn, not sure anyway.
Good tutorial, you could use glob() instead of opendir() and readdir()
cheatonly2win 1 year ago
@cheatonly2win Yea I know I just wanted to explain it and keep it really basic :P
JREAMdesign 1 year ago