Properly flush memcache in correct location for db change. Fixes #36