huacnlee / rails-settings-cached

Global settings for your Rails application.
Other
1.06k stars 202 forks source link

Disable RequestCache without Rails application #219

Closed huacnlee closed 3 years ago

huacnlee commented 3 years ago

In some cases (Sidekiq or other background job), RequestCache will can not expire. because it requirement Rails ActionController lifecycle to clean RequestCache.

There need a check to disable when not use in ActionController.

huacnlee commented 3 years ago

version 2.8.0 fixed this.

andredriem commented 2 years ago

This still seems to be an issue with 2.8.2. I'm using Sidekiq and as a workaround I'm using "Setting.clear_cache" before each perform.