]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_lua: Fix up LuaCodeCache:
authorDaniel Gruno <humbedooh@apache.org>
Mon, 30 Jul 2012 08:19:14 +0000 (08:19 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Mon, 30 Jul 2012 08:19:14 +0000 (08:19 +0000)
commit6c49f1e0824947adfbf0eb78898e7ad94a490fbc
tree93fe99d38316a0fc66093b9878ab3edb6f518019
parentef26b8b1256c816b776695e9a72c0fc24ce6daa4
mod_lua: Fix up LuaCodeCache:
- Check both mtime and size of a file when comparing with cache, in case the file is being written to while read
- If LuaCodeCache is 'never', only reload it if it has been run once or more.
- Never use cache if LuaScope is 'once'.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367025 13f79535-47bb-0310-9956-ffa450edef68
modules/lua/lua_vmprep.c
modules/lua/lua_vmprep.h