webmcp

view framework/env/request/set_cache_time.lua @ 428:52ebde158c92

Fixed minor glitch regarding floating point numbers (e.g. 0.009) in JSON encoder; Distinguish between integers and floats in JSON encoder if Lua version >= 5.3
author jbe
date Thu Jan 14 17:40:49 2016 +0100 (2016-01-14)
parents fa3a5bba0067
children
line source
1 --[[--
2 request.set_cache_time(
3 seconds -- duration in seconds
4 )
6 Sets the expiration timeout for static content.
8 --]]--
10 function request.set_cache_time(seconds)
11 request.configure(function()
12 request._cache_time = seconds
13 end)
14 end

Impressum / About Us