Skip to content

Commit

Permalink
Re-enable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Aug 23, 2023
1 parent 76c1bc3 commit 0a0e1bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Config/OptionsTables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ local function MakeGeneralOptions(opts)
GUI:CreateNewline(opts)

GUI:SetDBType"Global"
GUI:CreateToggle(opts, {"cache", "enabled"}, L["Cache"], L["Speeds up processing, but may introduce tooltip issues."])
GUI:CreateToggle(opts, {"cache", "enabled"}, L["Cache"], L["Greatly speeds up processing, but may occasionally cause tooltip formatting issues."] .. "|n|n" .. Addon:MakeColorCode(Addon.COLORS.RED, format(L["If a tooltip appears to be formatted incorrectly, hide it for %d seconds to clear the cache."], Addon:GetGlobalOption("cache", "constructorWipeDelay"))))
GUI:CreateReset(opts, {"cache", "enabled"})
GUI:ResetDBType()
end
Expand Down
8 changes: 4 additions & 4 deletions Config/Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ function Addon:MakeDefaultOptions()

cache = {
["*"] = true,
enabled = false,
enabled = true,

-- constructor = false,
-- text = false,
-- stat = false,

constructorWipeDelay = 3, -- time in seconds without constructor being requested before it's cleared
constructorMinSeenCount = 6, -- minimum number of times constructor must be requested before it can be cached
constructorMinSeenTime = 1, -- minimum time in seconds since constructor was first requested before it can be cached
constructorWipeDelay = 5, -- time in seconds without constructor being accessed before it's cleared
constructorMinSeenCount = 3, -- minimum number of times item must be seen (within wipe delay) before it can be cached
constructorMinSeenTime = 0.5, -- minimum time in seconds since item was first seen (within wipe delay) before it can be cached
},

throttle = {
Expand Down
9 changes: 5 additions & 4 deletions Locale/enUs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ L["Reorder"] = true
L["Recolor"] = true
L["Cache"] = true

L["Allow or prohibit all reordering."] = true
L["Allow or prohibit all rewording."] = true
L["Allow or prohibit all recoloring."] = true
L["Speeds up processing, but may introduce tooltip issues."] = true
L["Allow or prohibit all reordering."] = true
L["Allow or prohibit all rewording."] = true
L["Allow or prohibit all recoloring."] = true
L["Greatly speeds up processing, but may occasionally cause tooltip formatting issues."] = true
L["If a tooltip appears to be formatted incorrectly, hide it for %d seconds to clear the cache."] = true


L["Multiply"] = true
Expand Down

0 comments on commit 0a0e1bd

Please sign in to comment.