Posted by brendan on 07/13/05 14:33
Hi,
I've written a cache script for our website that loads a static html
text file if the relevant mysql table hasn't been updated rather than
re-processing the entire php script and undertaking all database calls.
Wonderful! It works and delivers content much faster.
However it still relies on the initial database query to check the table
status. Unfortunately our web host reliability is not the best in the world
and sometimes (admittedly infrequently) mysql hangs or dies.
What I would like to add to the script is some way of calling the text file
if mysql takes too long to respond. Is this possible? Is there a way of
writing a php statement that determines what to do in case of a mysql
timeout?
regards,
Brendan.
Navigation:
[Reply to this message]
|