Software /
code /
prosody
Changeset
13223:b88b3e414550
mod_storage_sql: Use integer config option for cache size
Missed this one, was probably only looking for get_option_number
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 18 Jul 2023 11:53:31 +0200 |
parents | 13222:cb6a17eaa0e6 |
children | 13224:71c28b36923f |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Tue Jul 18 11:53:12 2023 +0200 +++ b/plugins/mod_storage_sql.lua Tue Jul 18 11:53:31 2023 +0200 @@ -153,7 +153,7 @@ --- 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")