@memoize('traffic_last_modified', time=(60 * 10))
def get_traffic_last_modified():
 try:
  return Session.query(SitewidePageviews.date).order_by(desc(SitewidePageviews.date)).limit(1).one().date
 except NoResultFound:
  return datetime.datetime.min

@ memoize ( 'traffic_last_modified' , time = ( 60 * 10 ) ) def get_traffic_last_modified ( ) : try : return Session . query ( SitewidePageviews . date ) . order_by ( desc ( SitewidePageviews . date ) ) . limit ( 1 ) . one ( ) . date except NoResultFound : return datetime . datetime . min
guess how far behind the traffic processing system is .