Support the ongoing development of Laravel.io →
posted 3 months ago

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

Last updated by @quantrpeter 3 months ago.
0
moderator

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 :)

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Peter quantrpeter Joined 13 Feb 2025

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.