def _create_cache_timestamp(cache_path):
 access_path = os.path.join(cache_path, _CACHE_TIMESTAMP_FILE)
 if (not os.path.exists(access_path)):
  print u'Writing cache creation timestamp'
  created = long(time.time())
  try:
   with open(access_path, 'w') as f:
    f.write(str(created))
  except Exception as e:
   print u'Error occured writing cache creation timestamp'
   print e

def _create_cache_timestamp ( cache_path ) : access_path = os . path . join ( cache_path , _CACHE_TIMESTAMP_FILE ) if ( not os . path . exists ( access_path ) ) : print u'Writing cache creation timestamp' created = long ( time . time ( ) ) try : with open ( access_path , 'w' ) as f : f . write ( str ( created ) ) except Exception as e : print u'Error occured writing cache creation timestamp' print e
creates a life span with the current time .