robots.txt
Source code:Handler:
Runtime: http://twix-mit.appspot.com/robots.txt
sitemap.xml
Source code:Handler:
Runtime: http://twix-mit.appspot.com/sitemap.xml
"when" pages
You might note in the sitemap, all the pages are driven by date. I've used some of the nice time delta modules in python.Source code:
This allows getting the current time, doing delas to tomorrow, yesterday, etc.
"when" caching
Per the "when" stuff, the http response headers are now timed given the cron cycle for the news digestion. The memcache time is also driven by this calculation as well.Source code:
- https://github.com/twixmit/twixmit/blob/3223be3ac2b0ebf255fdd7d44227f8a8046879c5/newmedigester.py#L532
- https://github.com/twixmit/twixmit/blob/3223be3ac2b0ebf255fdd7d44227f8a8046879c5/newmedigester.py#L465