def post(self): """Set the featured speaker(s) for a conference.""" conf_api = ConferenceApi() conf_api._cacheConferenceFeaturedSpeaker( self.request.get('websafeConferenceKey') ) self.response.set_status(204)
def get(self): """Periodically refresh featured speaker info in memcache.""" # Start with a fresh cache memcache.flush_all() # Iterate through all sessions, updating featured speaker cache conf_api = ConferenceApi() conf_api._cacheConferenceFeaturedSpeaker( self.request.get('websafeConferenceKey') ) self.response.set_status(204)