]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/config: cache open by default (even if not in config)
authorMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 24 Sep 2015 12:12:47 +0000 (14:12 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 24 Sep 2015 12:12:47 +0000 (14:12 +0200)
before the cache was disabled by default, but this has led to many user
errors (mine as well). this enables it by default (which is what most
people want anyway)

daemon/lua/config.lua
daemon/lua/sandbox.lua

index e23e0d3d6734f45b4f53d90b859076f2712ab813..028b88bb4cd4f8497fbbf9137dd340bff31b8405 100644 (file)
@@ -1,5 +1,3 @@
--- Default configuration
-cache.open(10*MB)
 -- Listen on localhost
 if not next(net.list()) then
        if not pcall(net.listen, '127.0.0.1') then
index e32c0762b8f3ae55729ad13ac4caddd7078e9433..048814133ed10e5f71c32d601865ed1dc3aacb53 100644 (file)
@@ -66,6 +66,8 @@ setmetatable(cache, {
                else   rawset(t, k, v) end
        end
 })
+-- Defaults
+cache.size = 10 * MB
 
 -- Syntactic sugar for TA store
 trust_anchors = kres.trust_anchors