Fixed repository cache invalidation

memcached keys were deleted only for objects/classes who were previously
queried during same request