Manage HTMLPurifier cache
masterHTMLPurifier auto-caches serialized definitions to improve performance.
Clearing the Cache
If you update your definitions configuration, you must clear the cache using the Artisan command:
php artisan purify:clearWarning: This command will issue a Cache::clear() if using CacheDefinitionCache, or clear the configured directory if using FilesystemDefinitionCache.
Disabling Caching
To disable caching (useful for debugging), set the serializer option to null in config/purify.php:
'serializer' => null,Note: Caching is highly recommended for production environments.