0
0
Fork 0
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:
Jason Volk 2018-09-05 00:07:49 -07:00
parent 6f3c7b6f56
commit bec1006ba7

View file

@ -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);
}