欢迎各位兄弟 发布技术文章
这里的技术是共享的
removeStorageViewsAndLog.sh (remove_storage_views_and_log.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
removefrontcache_my.sh remove_front_cache_my.sh
#!/bin/bash
#
for I in /home/wwwroot/* ; do
Frontcache=${I}/public_html/resources/views/frontcache
if [ -d $Frontcache ]; then
echo ${Frontcache}
rm -Rf ${Frontcache}/*
fi
done