Added invalidation for cached photo ids