Last active
September 22, 2020 02:39
-
-
Save ThienTranDuy/1d068d2ec6f9c5adc370951364c76d8d to your computer and use it in GitHub Desktop.
Cronjob clear cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sync; echo 3 > /proc/sys/vm/drop_caches | |
## setup crontab */30 * * * * /usr/bin/bash /home/cronjob/cache-clear.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment