2022-03-27, 05:06 PM
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
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