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:
- How to Fix Failed to add the host to the list of known hosts
- Laravel 500 server error, perfect solution
- brew Error: Could not create /usr/local/Cellar
- Linux configuration SFTP server
- CONDA error notwritableerror: the current user does not have write permissions
- failed: Too many links (How to Fix)
- Oracle reports an error and lsnrctl listening cannot be started
- Vsftpd: 500 oops: vsftpd: refusing to run with writable root inside chroot() error
- A case diagnosis and solution of DB2 error code 1639 and SQL state 08001 is described in detail
- Solve the problem of dynamically applying for permission, but still reporting an error of open failed: eacces (permission denied)
- Windows encountered 1152 when installing software: error extracting files to the temporary location
- JIRA startup failed, JIRA has been locked.
- Two kinds of errors caused by root / lack of execution permission x
- Method of modifying file and folder permission by Chmod command in Linux
- Solution to permission denied
- Linux remote copy command and not a regular file solution
- Composer require — dev barryvdh / laravel ide helper error resolution
- Summary of Hadoop error handling methods
- Run spark to report error while identifying ‘ org.apache.spark . sql.hive.HiveSessionState ‘
- NPM report error: eperm: operation not permitted, unlink… Solution and clear cache_ modules