欢迎各位兄弟 发布技术文章
这里的技术是共享的
# vim removeStorageViewsAndLog.sh
#!/bin/bash
#
for I in /home/wwwroot/* ; do
viewcache=${I}/public_html/storage/framework/views
if [ -d $viewcache ]; then
echo ${viewcache}
find ${viewcache} -name "*.php" | xargs rm -rf
#rm -Rf ${Frontcache}/*
fi
done
for I in /home/wwwroot/* ; do
logcache=${I}/public_html/storage/logs
if [ -d $logcache ]; then
echo ${logcache}
rm -f ${logcache}/laravel.log
fi
done