README.md in notification_center-0.3.1 vs README.md in notification_center-0.3.2
- old
+ new
@@ -12,13 +12,21 @@
```ruby
gem 'notification_center'
```
+# Cache
+
+To enable cache, in your:
+
config/initializers/notification_center.rb
```ruby
NotificationCenter.enable_cache = true # only one event fired in one request scope, default is false
+```
+Dont forget to flush cache wach request, for this in your config/application.rb in config section:
+```ruby
+config.middleware.use NotificationCenter::Cache
```
## Use
In any class or multiple classes:
\ No newline at end of file