Any decent OS will cache the most recently accessed pages from disk in memory anyway, regardless of what you do. Any decent RDBMS will also cache data in memory remarkably effectively.
Looking at your code it looks somewhat like you are re-implementing SSI. Why not just use SSI? On that thought if you have a limited number of dynamically generated pages making them static with periodic updates will be faster than dynamically serving them.
cheers
tachyon
In reply to Re: Repetitive File I/O vs. Memory Caching
by tachyon
in thread Repetitive File I/O vs. Memory Caching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |