Reduce cache flush frequency to once per minute

This commit is contained in:
SChernykh 2021-11-01 11:29:59 +01:00
parent d283f91eb0
commit 61edc6ed70

View file

@ -740,7 +740,7 @@ void P2PServer::on_timer()
void P2PServer::flush_cache() void P2PServer::flush_cache()
{ {
if (!m_cache) { if (!m_cache || ((m_timerCounter % 30) != 2)) {
return; return;
} }