hooopo/second_level_cache

Rails env should be included in cache_key by default

yakjuly opened this issue · 2 comments

if dev and test environment configure same cache_store.
Test will read development's cache.

Even cache_key_prefix was configured to include Rails.env.
fetch_by_uniq_keys still does not work.

@yakjuly thanks for reporting.

  1. this is cache store's responsibilities, slc only depend on AR. You can use diff namespace for dev and test env.
  2. this is a bug, i'll fix it asap.