README.md in active_model_cachers-2.0.1 vs README.md in active_model_cachers-2.0.2
- old
+ new
@@ -130,10 +130,13 @@
# clean the cache by name
current_user.cacher.clean(:profile)
# Or calling the clean_* method
current_user.cacher.clean_profile
+
+# clean the cache without loading model
+User.cacher_at(user_id).clean_profile
```
## Smart Caching
### Multi-level Cache
@@ -164,10 +167,10 @@
end
@profile = current_user.cacher.profile
# directly get profile without loading user.
-@profile = User.cacher_at(profile_id).profile
+@profile = User.cacher_at(user_id).profile
```
### Caching Polymorphic Associations
TODO