mhgbrown / cached_resource

Caching for ActiveResource
MIT License
80 stars 28 forks source link

Calls to where are not cached #52

Closed sudoaza closed 2 years ago

sudoaza commented 2 years ago

Looks like find calls are intercepted but not where calls. Is this by design?

mhgbrown commented 2 years ago

It might have just been overlooked! However, I see that where uses find under the hood and we alias find with find_with_cache. Doesn't this cover where (I'm a little Ruby rusty these days)?

sudoaza commented 2 years ago

Ah that probably does it, I was overriding where but not find somewhere else and thought this would apply here too. Closing, thanks!