webmcp

view framework/env/request/set_cache_time.lua @ 463:43a4b74b5b18

Bugfix in JSON library: length of array is an integer, not a float (Lua 5.3 distinguishes them)
author jbe
date Sat Sep 10 21:34:59 2016 +0200 (2016-09-10)
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