Skip to content

Commit

Permalink
fix(core): don't log error when deleting an invalid key in memcached
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Sep 24, 2021
1 parent 434531c commit 0716656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoObjects/SOGo/SOGoCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ - (void) removeValueForKey: (NSString *) key
keyData = [key dataUsingEncoding: NSUTF8StringEncoding];
rc = memcached_delete (handle, [keyData bytes], [keyData length],
0);
if (rc != MEMCACHED_SUCCESS)
if (rc != MEMCACHED_SUCCESS && rc != MEMCACHED_NOTFOUND)
[self errorWithFormat: (@"failure deleting cached value for key"
@" '%@'"),
key];
Expand Down

0 comments on commit 0716656

Please sign in to comment.