Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 5d4241a

Browse files
Clarified regeneration method.
1 parent 19447b8 commit 5d4241a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ LARACONFIG_STORE=redis
480480
481481
#### Managing the cache
482482

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.
484484

485485
```php
486486
$user->settings->regenerate();
@@ -492,7 +492,7 @@ You can also invalidate the cached settings using `invalidate()`, which just del
492492
$user->settings->invalidate();
493493
```
494494

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.
496496

497497
```php
498498
$user->settings->regeneratesOnExit = true;

0 commit comments

Comments
 (0)