سؤال

Is is possible to configure the rails fragment caching to be a file_store and have the Rails.cache object to store values using a memory store? Or are they both the same storage mechanism in the end?

هل كانت مفيدة؟

المحلول

As far as I'm aware, without monkey patching things, they're going to have to share the same cache store.

I'd assume it's possible to monkey patch things to have it look for which store to use elsewhere, and then get the two working separately, but that sounds like a bit of a nightmare.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top