Optimize photo cache invalidation a bit

Bug 5623200

Change-Id: I098429b192c6ec25043fa92170ce5f5b53563cff
1 file changed