You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -480,7 +480,7 @@ LARACONFIG_STORE=redis
480
480
481
481
#### Managing the cache
482
482
483
-
You can forcefully regenerate the cache of a single user using `regenerate()`. This basically retrieves all the settings from the database (for the bags used) and saves them into the cache.
483
+
You can forcefully regenerate the cache of a single user using `regenerate()`. This basically saves the settings present and saves them into the cache.
484
484
485
485
```php
486
486
$user->settings->regenerate();
@@ -492,7 +492,7 @@ You can also invalidate the cached settings using `invalidate()`, which just del
492
492
$user->settings->invalidate();
493
493
```
494
494
495
-
Finally, you can have a little peace of mind by setting `regeneratesOnExit` to `true`, which will regenerate the cache when the settings are garbage collected by the PHP process
495
+
Finally, you can have a little peace of mind by setting `regeneratesOnExit` to `true`, which will regenerate the cache when the settings are garbage collected by the PHP process.
If the [Cache is activated](#cache), the migration will not invalidate the setting cache of all users after it completes.
505
+
If the [Cache is activated](#cache), the migration will invalidate the setting cache for each user after it completes.
506
506
507
507
Depending on the Cache system, forgetting each cache key can be detrimental. Instead, you can use the `--flush-cache` command to flush the cache store used by Laraconfig, instead of deleting each key one by one.
508
508
@@ -512,7 +512,7 @@ Depending on the Cache system, forgetting each cache key can be detrimental. Ins
512
512
513
513
## Validation
514
514
515
-
Settings values are casted, but not validated. You should validate in your app every value that you plan to store in a setting.
515
+
Settings values are _casted_, but not validated. You should validate in your app every value that you plan to store in a setting.
0 commit comments