mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
modules/media/media: Check for column init for any conf update.
This commit is contained in:
parent
6f3c7b6f56
commit
bec1006ba7
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,9 @@ media_blocks_cache_size
|
|||
{ "default", long(48_MiB) },
|
||||
}, []
|
||||
{
|
||||
if(!blocks)
|
||||
return;
|
||||
|
||||
const size_t &value{media_blocks_cache_size};
|
||||
db::capacity(db::cache(blocks), value);
|
||||
}
|
||||
|
@ -97,6 +100,9 @@ media_blocks_cache_comp_size
|
|||
{ "default", long(16_MiB) },
|
||||
}, []
|
||||
{
|
||||
if(!blocks)
|
||||
return;
|
||||
|
||||
const size_t &value{media_blocks_cache_comp_size};
|
||||
db::capacity(db::cache_compressed(blocks), value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue