fluent-php icon indicating copy to clipboard operation
fluent-php copied to clipboard

Caching

Open tobyzerner opened this issue 2 years ago • 3 comments

Parsing Fluent files is expensive and would benefit from caching between requests. Is there a recommended approach for this?

tobyzerner avatar Apr 21 '23 03:04 tobyzerner

Unfortunately, there is no way to cache parsed Fluent files at the moment.

jrmajor avatar May 11 '23 16:05 jrmajor

FYI, in Waterhole I ended up manually adding a caching layer which serializes/unserializes parsed FluentResource instances onto the filesystem. Works great.

tobyzerner avatar May 27 '23 04:05 tobyzerner

With last update its no more expensive. And i think cach layer must be outside of fluent. Atleast this moment. In our project we store fluent cache in memcache

hakastein avatar Jun 06 '23 15:06 hakastein