Fixes bug when trying to store an already existing key
Fixes bug when saving a cache item in the admin interface