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

Commit

Permalink
Clarified regeneration method.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Jul 18, 2021
1 parent 19447b8 commit 5d4241a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ LARACONFIG_STORE=redis
#### Managing the cache

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.
You can forcefully regenerate the cache of a single user using `regenerate()`. This basically saves the settings present and saves them into the cache.

```php
$user->settings->regenerate();
Expand All @@ -492,7 +492,7 @@ You can also invalidate the cached settings using `invalidate()`, which just del
$user->settings->invalidate();
```

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

```php
$user->settings->regeneratesOnExit = true;
Expand Down

0 comments on commit 5d4241a

Please sign in to comment.