Added photo cache control