File

plugins/sql.lib.lua @ 6681:0217a04722c7

util.datamanager: Fix traceback from trying to purge when storage is empty or otherwise unaccessible (fixes #496)
author Kim Alvefur <zash@zash.se>
date Wed, 13 May 2015 21:44:13 +0200
parent 5494:9916f0a2d178
line wrap: on
line source

local cache = module:shared("/*/sql.lib/util.sql");

if not cache._M then
	prosody.unlock_globals();
	cache._M = require "util.sql";
	prosody.lock_globals();
end

return cache._M;