mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
Browser+LibWeb+WebContent: Add action to clear resource cache
This commit is contained in:
parent
50a8e0e495
commit
855920fe13
4 changed files with 20 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -56,6 +56,8 @@ public:
|
|||
|
||||
const String& user_agent() const { return m_user_agent; }
|
||||
|
||||
void clear_cache();
|
||||
|
||||
private:
|
||||
ResourceLoader();
|
||||
static bool is_port_blocked(int port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue