free html hit counter
Linux Clear Cache
Linux Clear Cache
2020-05-29 / Kuswati
#!/bin/bash
#clean page cache
#sync
#echo 1 >/proc/sys/vm/drop_caches
#clean dentries and inodes
#sync
#echo 2 >/proc/sys/vm/drop_caches
#clean page cache and dentries inodes, but it is not recommended in production instead use "echo 1"
#sync
#echo 3 >/proc/sys/vm/drop_caches

##################
# begin refresh script
##################

sync
if [ $(dpkg-query -W -f='${Status}' polipo 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
apt-get install polipo -y
fi
polipo -x
echo 3 >/proc/sys/vm/drop_caches
swapoff -a && swapon -a
printf '\n%s\n\n' 'Ram-cache and Swap Cleared'
/opt/lampp/xampp restart
free -h

this script used for better performance your vps (LINUX).

  • fix apache slow response
  • fix xampp web server slow
  • fix overload ram vps
  • fix mysqld overheat
  • fix java machine overheat ram

Linux Clear Cache

PermaLink: https://www.webmanajemen.com/2020/05/linux-clear-cache.html
Incoming search terms for Linux Clear Cache:
  • Linux Clear Cache
  • Linux Clear Cache WMI Gitlab

Google Rich Snippets | Schema Markup Validator | Google Pagespeed Insight