Skip to content

Commit

Permalink
Make the cache less eager
Browse files Browse the repository at this point in the history
This will cause additional processing, but reduces the risk of constructor validation failure.
  • Loading branch information
Anonomit committed Oct 9, 2022
1 parent e2ac215 commit 70d82a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ function Addon:MakeDefaultOptions()
constructor = {
doValidation = true,

cacheWipeDelay = 10, -- time in seconds without constructor being requested before it's cleared
cacheMinSeenCount = 4, -- minimum number of times constructor must be requested before it can be cached
cacheMinSeenTime = 0.5, -- minimum time in seconds since constructor was first requested before it can be cached
cacheWipeDelay = 3, -- time in seconds without constructor being requested before it's cleared
cacheMinSeenCount = 6, -- minimum number of times constructor must be requested before it can be cached
cacheMinSeenTime = 1, -- minimum time in seconds since constructor was first requested before it can be cached
},

cache = {
Expand Down Expand Up @@ -849,7 +849,7 @@ function Addon:MakePaddingOptions(categoryName, chatCmd, arg1, ...)
local opts = GUI:CreateGroupTop(title)

CreateCombineStatsOption(opts)
Addon.GUI:CreateToggle(opts, {"pad", "before", "BonusEffect"}, L["Space Above Bonus Effects"]).width = 2
Addon.GUI:CreateToggle(opts, {"pad", "before", "BonusEffect"}, L["Add Space Above Bonus Effects"]).width = 2

local paddedAfterPrevious = false
local combineStats = self:GetOption("allow", "reorder") and self:GetOption"combineStats"
Expand Down Expand Up @@ -1745,7 +1745,7 @@ function Addon:MakeDebugOptions(categoryName, chatCmd, arg1, ...)
local panel = self:CreateOptionsCategory(categoryName, function()

local GUI = self.GUI:ResetOrder()
local opts = GUI:CreateGroupTop(title)
local opts = GUI:CreateGroupTop(title, "tab")

-- Enable
do
Expand Down
2 changes: 1 addition & 1 deletion Locale/enUs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ L["Reorder"] = true
L["Recolor"] = true

L["Group Secondary Stats with Base Stats"] = true
L["Space Above Bonus Effects"] = true
L["Add Space Above Bonus Effects"] = true

L["Multiply"] = true
L["Multiplier"] = true
Expand Down

0 comments on commit 70d82a6

Please sign in to comment.