This is more of a general question rather than an issue
I have multiple relationships that i need to access multiple times thought the app to check variables and parameters
Ideally caching it once and directly loading it into the request to access thought the app (example in a middleware, in a controller and a few other functions if nessesary)
What would be the best way to do it? Session? But i also need to do logic on the cached data...
Redis? I wouldn't want to call redis 5-10 times per request only once
A singleton that accesses the cached data? Are singletons even a good idea for a caching strategy?
Something else? I'm looking for suggestions...