removed some un-necessary files in examples and the cache in db running demo

This commit is contained in:
mdipierro
2012-08-06 08:57:06 -05:00
parent 06f6e83c3c
commit c08d5773e8
6 changed files with 14 additions and 94 deletions
@@ -49,14 +49,3 @@ def cache_controller_and_view():
return response.render(d)
def cache_db_select():
"""cache the database select in ram for 5 seconds"""
db.users.insert(name='somebody', email='gluon@mdp.cti.depaul.edu')
records = db().select(db.users.ALL, cache=(cache.ram, 5))
if len(records) > 20:
db(dba.users.id > 0).delete()
return dict(records=records)