mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
RequestServer: Add a time parameter to the clear cache endpoint
This allows removing cache entries last accessed since a provided timestamp.
This commit is contained in:
parent
ba49942b6d
commit
3f61f0f189
Notes:
github-actions[bot]
2025-11-12 14:08:53 +00:00
Author: https://github.com/trflynn89
Commit: 3f61f0f189
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6675
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/konradekk
11 changed files with 35 additions and 38 deletions
|
|
@ -831,7 +831,7 @@ void Application::initialize_actions()
|
|||
|
||||
m_debug_menu->add_action(Action::create("Collect Garbage"sv, ActionID::CollectGarbage, debug_request("collect-garbage"sv)));
|
||||
m_debug_menu->add_action(Action::create("Clear Cache"sv, ActionID::ClearCache, [this, clear_memory_cache = debug_request("clear-cache")]() {
|
||||
m_request_server_client->async_clear_cache();
|
||||
m_request_server_client->async_remove_cache_entries_accessed_since({});
|
||||
clear_memory_cache();
|
||||
}));
|
||||
m_debug_menu->add_action(Action::create("Clear All Cookies"sv, ActionID::ClearCookies, [this]() { m_cookie_jar->clear_all_cookies(); }));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue