in server/scripts/redirector.py [0:0]
def get_latest_version(self, channel):
"""Determine what the latest version number is for this particular channel.
We do a bit of caching so that we're not constantly pinging for the latest
version of stable, for example."""
forced_reload = (self.request and self.request.get('force_reload'))
version_info = ApiDocs.latest_versions[channel]
if (forced_reload or
version_info.version is None or version_info.should_update()):
return self.recheck_latest_version(channel)
else:
return version_info.version