---
title: "Dalli"
description: "1 posts about Dalli, summarised, each linking to the original."
---

# Dalli
> 1 posts about Dalli, summarised, each linking to the original.

## Articles

### [Cache Invalidation Complexity: Rails 5.2 and Dalli Cache Store](https://yomu.fyi/post/cache-invalidation-complexity-rails-5-2-and-dalli-cache-store.md)
- Company: [Heroku](https://yomu.fyi/company/heroku.md)
- Author: Richard Schneeman
- Published: Oct 16, 2018
- Type: Problem & solution

Rails 5.2+ applications can fail to invalidate ActiveRecord-backed cache entries when cache versioning is enabled alongside a third-party store such as dalli\_store 2.7.8 or earlier. Rails’ recyclable cache keys keep the cache\_key stable and store an ActiveRecord cache\_version in the entry, preventing unrelated entries from being evicted, but Dalli only understands the key and therefore repeatedly returns stale data. The post explains how to check the production cache\_store and active\_record.cache\_versioning settings, then compares switching to Rails’ :mem\_cache\_store, disabling versioning, and upgrading Dalli to 2.7.9+. Its recommendation is to use :mem\_cache\_store and flush the cache, while noting that Dalli 2.7.9 fixes invalidation by putting the version into the key rather than implementing recyclable keys.
