mhgbrown / cached_resource

Caching for ActiveResource
MIT License
80 stars 28 forks source link

Add option to not cache collections #50

Closed sudoaza closed 3 years ago

sudoaza commented 3 years ago

Adds a configuration option to cache only individual records.

Useful when Things are created often but not updated often/even.

Input on the is_any_collection? method is welcomed, I wasn't quite sure.

I also avoid writing to cache and retrieving it to avoid the overhead.

mhgbrown commented 3 years ago

Thanks again. I updated the README and released https://github.com/mhgbrown/cached_resource/releases/tag/v5.3.0

sudoaza commented 3 years ago

Oh thank you for doing that!