purify icon indicating copy to clipboard operation
purify copied to clipboard

Allow different caching strategies

Open kurucu opened this issue 6 years ago • 2 comments

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.

kurucu avatar Apr 19 '20 05:04 kurucu

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

phuclh avatar May 14 '22 19:05 phuclh

Hi @phuclh,

Please see https://github.com/stevebauman/purify/issues/51, thanks!

stevebauman avatar May 14 '22 20:05 stevebauman

Closing -- we'll keep #51 open for tracking this issue.

stevebauman avatar Sep 16 '22 13:09 stevebauman