removed some un-necessary files in examples and the cache in db running demo
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user