Let's say a path on my rails app got stuck in rack cache. Is there a way to say: "/games/zelda" should be removed/invalidated from rack-cache?
Invalidating individual keys from rack-cache?
242 Views Asked by user3384741 At
2
There are 2 best solutions below
0

You can either delete one key or all keys from an Memcached instance. Unfortunately doesn't allow to list all keys. Therefore you cannot iterate over all keys and just delete the one you want to invalidate.
That said I see two options:
- Delete all keys in Memcached.
- Or change the path in the URI of your Memcached Storage config and re-cache all keys.
Assumtions
MyApp
Step 1 obtain a normalized key
Step 2 retrieve storage objects
Step 3 retrieve the metadata
Step 4 purge the entity store for each compression type
Step 5 purge the metastore
I hope this helps.