code: def get_cached_object_or_404(model, timeout=CACHE_TIMEOUT, **kwargs):
      
      try:
          return get_cached_object(model, timeout=timeout, **kwargs)
      except ObjectDoesNotExist, e:
          raise Http404('Reason: %s' % str(e))
docs: Shortcut that will raise Http404 if there is no object matching the query
  
      see get_cached_object for params description