As this sends all tables in one query, even if the php script itself were to timeout the mysql process should continue to run. If anyone wishes to test and finds otherwise, please do share
I'm finding it hard to test out with any results...
But, I guess if the php script were to timeout and the MySQL process completes, then at the very least all that would happen is the time of the last run optimize would not be added to the config.
You could use the set_time_limit() function though to temporarily override any timeout limits
Formerly known as VSE • My Extensions • Please do not PM me for support.