X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDBConnect%2FCache.pm;h=c133e8a3db641f6e713e8f06b28f388ee0dc9fa5;hb=ff159a4d47b9a2d10744dcfc23da2c63605c8a32;hp=7e4633b69332e6974b8ab7f8b8df1f67e2945f89;hpb=d6138be82164a47633942ae567d17c44372c3139;p=kivitendo-erp.git diff --git a/SL/DBConnect/Cache.pm b/SL/DBConnect/Cache.pm index 7e4633b69..c133e8a3d 100644 --- a/SL/DBConnect/Cache.pm +++ b/SL/DBConnect/Cache.pm @@ -43,6 +43,11 @@ sub clear { %cache = (); } +sub disconnect_all_and_clear { + $_->disconnect for values %cache; + %cache = (); +} + sub _args2str { my (@args) = @_;