webmcp
annotate framework/env/request/set_cache_time.lua @ 399:ef3201ed67f5
Bug in <db_handle>:try_query(...) fixed, which caused errors when result contains more than two columns (bug introduced by changeset fb98b17056e5)
author | jbe |
---|---|
date | Sun Jan 03 21:15:57 2016 +0100 (2016-01-03) |
parents | fa3a5bba0067 |
children |
rev | line source |
---|---|
jbe@291 | 1 --[[-- |
jbe@291 | 2 request.set_cache_time( |
jbe@291 | 3 seconds -- duration in seconds |
jbe@291 | 4 ) |
jbe@291 | 5 |
jbe@291 | 6 Sets the expiration timeout for static content. |
jbe@291 | 7 |
jbe@291 | 8 --]]-- |
jbe@291 | 9 |
jbe@291 | 10 function request.set_cache_time(seconds) |
jbe@291 | 11 request.configure(function() |
jbe@291 | 12 request._cache_time = seconds |
jbe@291 | 13 end) |
jbe@291 | 14 end |