Sorry if this seems trivial, but I need to be sure:
Where does Laravel 6 store the view cache? On the cache server or in the storage folder?
Does it get stored in my redis if I set it as the cache server?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
The view cache is always stored via the filesystem in
You can verify this by setting your cache to something like Redis, doing
php artisan view:clear, and observing that folder after visiting a couple Blade views in the browser. Files will show up even when you're not using the file-based driver.
If you're on a multi-server load balanced setup, be aware this means you'll need to clear the view cache on each server independently. (Probably as part of your deployment process.)