darkweak
darkweak
I plan to add my HTTP cache tool called Souin but atm I won't have time until the next week I guess but I added the task on my todo...
Hi, maybe try with `cascade={'persist'}` parameter on your `ManyToMany` declaration
Hello everyone 👋 I was thinking about another cache system implementation. I already wrote an HTTP cache system ([called Souin](https://github.com/darkweak/souin)) used by the caddy cache-handler module, compatible with Træfik, Tyk...
@alexander-schranz Yes it can be used as a middleware (`http.Handler`). The more complex part will be the configuration parsing I think.
@rustatian ATM it doesn't support the `ESI` and the `Level 8: User context Caching` section. - ESI is not a validated RFC, can cause some cache pollutions and add latencies...
> For user context based caching, Souin would need to support that Caching works not only based on the Url instead also on an additional send header which can be...
@tonybase In fact you just have to run `httpcache.NewHTTPCacheFilter(httpcache.ParseConfiguration(config))` to use the httpcache filter with the given configuration file.
I made it to work with the Kratos configuration object, that's why the configuration file is really huge. The implementation cannot be simpler IMHO but it's transparent for the end...
@tonybase Do you think we have to simplify more the filter? Like always configure the cache management through the Kratos configuration? The filter handle the GraphQL caching too btw and...