Created
July 7, 2016 09:42
-
-
Save AjayKumar01/45be23a56839d760638969ea109bac02 to your computer and use it in GitHub Desktop.
Clear Os cache automatically -To Improve Server Performance
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
#!/usr/bin/sh | |
echo 3 > /proc/sys/vm/drop_caches | |
//Execute this file in cron with difference (based on RAM size) | |
In terminal | |
>crontab -e | |
//then add the below with correct path,we have given 45 mins as diff | |
*/45 * * * * sh /root/cronfiles/clearcache.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment