Allow different caching strategies
I extended HTMLPurifier_DefinitionCache in order to use the Laravel caching system rather than the bespoke filesystem one; mainly because Vapor (lambda) doesn't support local fs usage, so I use Redis.
Having written that class, I can't see how to inject that strategy. The config option requires you to pass a "short name" - one which has already been mapped to the class name you want to use with $factory->register(...). Hence this isn't a help request but an issue/feature for Purify - to allow bespoke classes to be passed in as cache definitions.
Hi @stevebauman, do you have any plans to make this package works with Vapor? Seems some people are having the same issue here (comment section): https://laracasts.com/series/lets-build-a-forum-with-laravel/episodes/101
Hi @phuclh,
Please see https://github.com/stevebauman/purify/issues/51, thanks!
Closing -- we'll keep #51 open for tracking this issue.