MyBB Community Forums

Full Version: have to reload cache on mysql restart
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I don't know how heavy (in resources) is the script from noyle, but peharps can you transform it into a task, with a check to know if cache must be rewrite or not, and run it regularly.
If you know when your "neighbour" crashes the MySQL, you can easily have a little condition based on the current time to reload (or not) the cache.

Another way could be a bash script checking the status of mysql and running the noyle's script if mysql come back. Depending on the duration of the mysql shutdown, the script could be launched via crontab or be alway in background
Pages: 1 2