mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
mod_storage_sql: Use integer config option for cache size
Missed this one, was probably only looking for get_option_number
This commit is contained in:
parent
3b448c4479
commit
5d673d0620
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue