2 Commits
main ... linux

Author SHA1 Message Date
63d13ea716 Reduct clearcaches feature 2025-11-20 08:53:46 +07:00
4b6cb37fe4 Bash script for clearing caches
Puts filesystem and buffered data which cached in memory (caches) to disk

This goes to anywhere in PATH
Should be ran by root/with sudo
Can be placed in crontab
2025-11-20 08:40:46 +07:00

3
clearcaches Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/bash
echo "Clearing caches at $(date +%y-%m-%d/%H:%M:%S)" && sync && sysctl vm.drop_caches=1