Skip to content

Commit 15910b0

Browse files
Update caching documentation
1 parent 52b2e0c commit 15910b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ return axios.get(route('posts.show', {id: postId}))
4040
```
4141

4242
## Caching
43-
Laravel caches views by default, so we're circumventing View caching by default when `config('app.env')` is `local`.
44-
If you want to do this in some other environment for some reason, just set `ziggy_cache` to `false` in your `config/app.php`.
43+
Laravel caches views by default, so we're doing a little magic to circumvent view caching if you've made any changes to your routes. By default this circumvention only happens when `config('app.env')` is `local`. If you want to do this in some other environment for some reason, just set `config('ziggy.skip_view_cache')` to `true`.
4544

4645
If you don't already, we'd recomment making sure you're running `view:clear` when deploying to non-local environments to make sure all your changes get reflected on the server.
4746

47+
*The current hashing technique we're using to check if your routes file has changed is a little unorthodox (some might even say "sketchy") so rest assured that we'll be hacking on it in the next week or two to optimize it.*
48+
4849

4950
## Credits
5051

0 commit comments

Comments
 (0)