Added discard cache option for WSGI app.

Also fixed bugs in created and modified listings.