The cache memory in Linux systems is used to speed up the response. To learn more about cache, clickhere to visit the website.
Hopefully, after referring to the website the concept about cache in Linux should get clear.
If you still wish to free up the cache memory here you go.
To clear cache memory using command as user root:
To set cronjob to clear cache memory at specific intervals:
- Access server through shell as a root user.
- Create a shell script say "clearcache.sh" under root partition and enter following contents
- Now, set the permission of script " /root/clearcache.sh" to 755
- Now edit crontab file
- Enter following line to set cronjob for clearing cache every hour
- Restart crond service