CMS
Joomla 定時自動清除快取
1
#
JDP
2818
0
2018-1-31 09:32:55
如果是使用memcahed當cache,則先安裝nmap-ncat,於crontab加入
0 12 * * * echo 'flush_all' | nc localhost 11211 > /dev/null 2>&1
如果是使用file當cache,則於crontab加入
0 12 * * * find /www/joomla/cache/ -type f -exec rm {} \;
Reference:
HowTo: Flush Contents Of a Memcached Server Using Command Line
https://www.servernoobs.com/howt ... using-command-line/
Cleaning cache with cron job
https://forum.joomla.org/viewtopic.php?t=480309
倒序瀏覽
看全部
全部回復
暫無回復,快來搶沙發
回復
收藏
轉播
分享
淘帖