diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-25 21:16:55 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-25 21:16:55 +0200 |
commit | eadf0c93e1448197178ef71ddba8e1e8f64683ae (patch) | |
tree | d3208962c89c136aa3cc4070ab8b6c3572e2b59f /init.lua | |
parent | 09457245e968759c322b89864e8f8847886f4daf (diff) | |
download | vicious-legacy-eadf0c93e1448197178ef71ddba8e1e8f64683ae.tar.xz |
Caching is controlled by users
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -74,8 +74,6 @@ for w, i in pairs(_M) do if w ~= "widgets" and w ~= "helpers" then -- Place widgets in the namespace table widgets[w] = i - -- Enable caching for all widget types - widget_cache[i] = {} end end end @@ -215,6 +213,14 @@ function activate(widget) end -- }}} +-- {{{ Enable caching for a widget +function enable_caching(widget) + if widget_cache[widget] == nil then + widget_cache[widget] = {} + end +end +-- }}} + -- {{{ Update a widget function update(widget, reg, disablecache) -- Check if there are any equal widgets |