Use the clear cache command when building projects with laravel version 5.7 or above:
php artisan cache:clear
Sometimes, the following errors are reported:
“Failed to clear cache. Make sure you have the appropriate permissions”
The reason is that there are two directories. You need to create a new directory.
mkdir -p storage/framework/cache/data
You also need to set directory permissions
chmod 777 /home/www/dir/bootstrap/cache && amp; chmod 777 /home/www/dir/bootstrap/cache/*
reference resources:
“Failed to clear cache. Make sure you have the appropriate permissions” in Laravel 5.7_ Yang level blog – CSDN blog
Read More:
- NPM report error: eperm: operation not permitted, unlink… Solution and clear cache_ modules
- Composer update encountered “Script php artisan optimize handling the post-update-cmd event returne when upgrading laravel
- Alicloud centos8 reports an error “error: failed to synchronize cache for repo ‘EPEL modular’”
- PHP function file_ get_ Contents() reports an error when using HTTPS protocol: SSL operation failed
- Vue Alain startup command yarn serve reports an error
- After upgrading php7, PHP program prompts an error: operator not supported for strings in causes and Solutions
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error
- The echots in Vue reports an error. After obtaining the DOM element, the chart can be displayed. The console still reports an error
- HTML method IE8 reports an error, IE8 jQuery Ajax obtains static resources reports an error, typeerror denies access
- After installation, Ubuntu encountered [SDB] asking for cache data failed assembling drive cache: write through
- Lamdba in the studio part reports an error. Observe lamdba reports an error but can run
- The file server reports an error of 413, and the file uploaded by nginx reports an error of 413 request entity too large
- Oracle reports an error and lsnrctl listening cannot be started
- PHP reports “parse error: syntax error, unexpected T”_ The solution of “variable”
- QT + MySQL generates an EXE file and reports an error “driver not loaded”. Solution steps
- Beeline connection hive2 reports an error permission denied
- PHP link database error PHP_ network_ getaddresses: getaddrinfo failed: Name or service not known
- php open(/var/lib/php/session/sess_4ofxxx, O_RDWR) failed: Permission denied (13)
- The java.lang.exceptionininitializererror of mybatis reports an error
- Vue cli 4 CMD command creates an error: error command failed NPM install – loglevel error – solution