How to implement Laravel 5 dynamic setting caching engine
This article introduces the knowledge of "how to implement Laravel 5 dynamic caching engine". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1.Laravel 5 dynamic Settings caching engine
The copy code is as follows:
\ Config::set ('cache.default','redis')
Var_dump (\ Config::get ('cache.default'))
\ Config::set ('cache.default','memcached')
Var_dump (\ Config::get ('cache.default'))
2.Laravel 5 has the same effect as use Illuminate\ Support\ Facades\
Unable to write and read storage directory under 3.Laravel 5 Linux
The copy code is as follows:
# chown-R www:www storage / / Note: www www is a user and group of nginx. View it in nginx.conf.
# if it still doesn't work
# php artisan cache:clear clears the application cache
That's all for "how to implement the Laravel 5 dynamic caching engine". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!