aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-18 11:53:31 +0200
committerKim Alvefur <zash@zash.se>2023-07-18 11:53:31 +0200
commit5d673d06206ea3f729403769923c18a992493826 (patch)
tree25aaac1c0e867873787d77f176257675bbc7fbc9 /plugins/mod_storage_sql.lua
parent3b448c447977807e6509422488bd3e42a8c69ad0 (diff)
downloadprosody-5d673d06206ea3f729403769923c18a992493826.tar.gz
prosody-5d673d06206ea3f729403769923c18a992493826.zip
mod_storage_sql: Use integer config option for cache size
Missed this one, was probably only looking for get_option_number
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index b97b0582..bac252bc 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -153,7 +153,7 @@ end
--- Archive store API
local archive_item_limit = module:get_option_integer("storage_archive_item_limit", nil, 0);
-local archive_item_count_cache = cache.new(module:get_option("storage_archive_item_limit_cache_size", 1000));
+local archive_item_count_cache = cache.new(module:get_option_integer("storage_archive_item_limit_cache_size", 1000, 1));
local item_count_cache_hit = module:measure("item_count_cache_hit", "rate");
local item_count_cache_miss = module:measure("item_count_cache_miss", "rate")