cache init from lua