Is there anyway to cache readdir() result? Right now I do readdir() on a directory tree everytime I enter a specific webpage on the website.
UPDATE:
- The directory structure is the same for all users.
- Unfortunately my shared host do not support APC or memcache 🙁
You can use
MemcachewithfilemtimeUpdate
You can use File Systems
Class Used