Added cache timeout to photo resource