Lua binding for cache update function