@classmethod
def fetch_all_components(self, update_cache=False):
    'Returns the list of blink components from live endpoint if unavailable in the cache.'
    key = ('%s|blinkcomponents' % settings.MEMCACHE_KEY_PREFIX)
    components = memcache.get(key)
    if ((components is None) or update_cache):
        components = []
        result = urlfetch.fetch(self.COMPONENTS_ENDPOINT, deadline=60)
        if (result.status_code == 200):
            components = sorted(json.loads(result.content))
            memcache.set(key, components)
        else:
            logging.error(('Fetching blink components returned: %s' % result.status_code))
    return components
Returns the list of blink components from live endpoint if unavailable in the cache.
@classmethod
def fetch_all_components(self, update_cache=False):
    
    key = ('%s|blinkcomponents' % settings.MEMCACHE_KEY_PREFIX)
    components = memcache.get(key)
    if ((components is None) or update_cache):
        components = []
        result = urlfetch.fetch(self.COMPONENTS_ENDPOINT, deadline=60)
        if (result.status_code == 200):
            components = sorted(json.loads(result.content))
            memcache.set(key, components)
        else:
            logging.error(('Fetching blink components returned: %s' % result.status_code))
    return components