Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 28, 2005, 9:06 am
rate this thread
I've configured apache to fetch filename.htm if user requests
filename.htm. But if filename.htm does not exist, apache will call
Now, index.php will generate a page, buffer it using ob_start and then
save it as filename.htm (thus, effectively filename.htm is cached as
file on server hard disk)
Every 10 minutes a cron job deletes filename.htm
So all users requesting filename.htm would be served with the static
version if it exists, otherwise a latest dynamic version created by
Any comments about using this type of caching technique..? Any
concurrent read/write problems that anyone foresees?
- R. Rajesh Jeba Anbiah
April 28, 2005, 3:01 pm
Re: caching+file locking
Obviously, locking is the major issue with file based caching
solutions. The workaround is swap file technique--but that will consume
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com /
- » [PEAR:QuickForm] Dynamically change a dropdown menu according to another menu?
- — Previous thread in » PHP Scripting Forum