'Cache.SerializerPath' does not work with Dynamic Configuration
Closed this issue · 1 comments
rambo666 commented
So I followed all your installation and configuration steps.
When I use
$cleaned = Purify::clean($input);
It works fine and all cache are stored in storage/purify.
As soon as I dynamically configure the second array and pass my configuration it seems that it will again start storing cache into the default htmlPurify vendor file.
mohammadsyuhada commented
I fixed this issue by adding 'Cache.SerializerPath' => storage_path('app/purify')
, to the dynamic configuration itself. Without this, error /var/www/html/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer not writable, please chmod to 777
will be displayed.