Hi I got two laravel projects, exactly same version of laraval framework. The first one when i upload blade to server, view cache not auto update. The second one can. If I add config/view with "'cache' => false", then it work. For the second project, whatever cache is true or false in config/view.php, it still able to auto reload the cache, why?
the only different between two project is: the first one using Memcached, in.env:
CACHE_STORE=memcached
thanks
Environment ......................................................................................................................................
Application Name ........................................................................................................................ NewBlock
Laravel Version .......................................................................................................................... 11.42.0
PHP Version ................................................................................................................................ 8.3.6
Composer Version ........................................................................................................................... 2.8.3
Environment ................................................................................................................................ local
Debug Mode ............................................................................................................................... ENABLED
URL ................................................................................................................................ www.jobweb.ai
Maintenance Mode ............................................................................................................................. OFF
Timezone .......................................................................................................................... Asia/Hong_Kong
Locale ........................................................................................................................................ en
Cache ............................................................................................................................................
Config ................................................................................................................................ NOT CACHED
Events ................................................................................................................................ NOT CACHED
Routes ................................................................................................................................ NOT CACHED
Views ..................................................................................................................................... CACHED
Drivers ..........................................................................................................................................
Broadcasting ................................................................................................................................. log
Cache .................................................................................................................................. memcached
Database ................................................................................................................................... mysql
Logs .............................................................................................................................. stack / single
Mail ......................................................................................................................................... log
Queue ................................................................................................................................... database
Session ................................................................................................................................. database
Hello @quantrpeter
You can run php artisan view:cache
to update the cache (or php artisan view:clear
to clear the view cache)
It will not see a change to the views if they are cached :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community