Skip to content

Commit

Permalink
Add disabling cache docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jan 10, 2023
1 parent 5ee860f commit 7c5305e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ You may do so via a `purify:clean` command:
php artisan purify:clean
```

#### Disabling Caching

To disable caching all together, you may set the `serializer` path to `null`:

```php
// config/purify.php

'serializer' => null,
```

This will cause your definitions to be serialized upon each application request.

> **Important**: Caching is recommended in production environments.
### Practices

If you're looking into sanitization, you're likely wanting to sanitize inputted user HTML
Expand Down

0 comments on commit 7c5305e

Please sign in to comment.