Fixed #33: Bug in global cache delete logic