Comparison

plugins/mod_storage_internal.lua @ 13228:616c578c644f

mod_storage_internal: Use integer option method for cache size Missed this one in previous sweep
author Kim Alvefur <zash@zash.se>
date Tue, 18 Jul 2023 12:36:47 +0200
parent 13213:50324f66ca2a
child 13262:9a86e7cbdd79
comparison
equal deleted inserted replaced
13227:58083329903d 13228:616c578c644f
10 local it = require "prosody.util.iterators"; 10 local it = require "prosody.util.iterators";
11 11
12 local host = module.host; 12 local host = module.host;
13 13
14 local archive_item_limit = module:get_option_integer("storage_archive_item_limit", 10000, 0); 14 local archive_item_limit = module:get_option_integer("storage_archive_item_limit", 10000, 0);
15 local archive_item_count_cache = cache.new(module:get_option("storage_archive_item_limit_cache_size", 1000)); 15 local archive_item_count_cache = cache.new(module:get_option_integer("storage_archive_item_limit_cache_size", 1000, 1));
16 16
17 local use_shift = module:get_option_boolean("storage_archive_experimental_fast_delete", false); 17 local use_shift = module:get_option_boolean("storage_archive_experimental_fast_delete", false);
18 18
19 local driver = {}; 19 local driver = {};
20 20