Browser+LibWeb+WebContent: Add action to clear resource cache

This commit is contained in:
Timothy Flynn 2021-03-29 15:31:09 -04:00 committed by Andreas Kling
commit 855920fe13
Notes: sideshowbarker 2024-07-18 20:57:57 +09:00
4 changed files with 20 additions and 0 deletions

View file

@ -236,4 +236,10 @@ bool ResourceLoader::is_port_blocked(int port)
return false;
}
void ResourceLoader::clear_cache()
{
dbgln("Clearing {} items from ResourceLoader cache", s_resource_cache.size());
s_resource_cache.clear();
}
}