Summary: | clear cache does not clear cache | ||
---|---|---|---|
Product: | kcontrol | Reporter: | Ferdinand Gassauer <f.gassauer> |
Component: | kcmproxy | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | locs1137 |
Priority: | NOR | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
the kcontrol part of the patch
the .desktop file part of the patch |
Description
Ferdinand Gassauer
2001-04-07 21:46:09 UTC
The directory doesn't even exist anymore. Closing. Apparently this bug has *not* been fixed. The directory now is ~/.kde/share/cache/http/, but it still doesn't get cleared when hitting "clear cache". (KDE 3.0.4 / SuSE 7.3 RPMs) reopening Created attachment 280 [details]
the kcontrol part of the patch
Created attachment 281 [details]
the .desktop file part of the patch
It seems the implementation was simply forgotten, since kio_http_cache_cleaner
does have the command-line argument --clear-all.
This patch should fix it.
Subject: kdebase/kcontrol/kio CVS commit by danimo: Finally fix #23883 using a slightly adopted patch provided by Georg Robbers. Thanks to KProcess::detach() we won't need the createServiceByPath() approach to ensure kio_http_cache_cleaner continues even when the applet is closed. CCMAIL:23883-done@bugs.kde.org M +16 -1 cache.cpp 1.25 M +1 -0 cache.h 1.4 --- kdebase/kcontrol/kio/cache.cpp #1.24:1.25 @@ -32,6 +32,8 @@ #include <kdialog.h> #include <klocale.h> -#include <dcopclient.h> +#include <kprocess.h> #include <ksaveioconfig.h> + +#include <dcopclient.h> #include <kio/http_slave_defaults.h> @@ -187,4 +189,8 @@ KCacheConfigDialog::KCacheConfigDialog( connect( sb_max_cache_size, SIGNAL(valueChanged ( int )),this, SLOT(configChanged())); + + connect( pb_clearCache, SIGNAL( clicked() ), this, + SLOT( slotClearCache() ) ); + // buddies lb_max_cache_size->setBuddy( sb_max_cache_size ); @@ -261,4 +267,13 @@ QString KCacheConfigDialog::quickHelp() "downloaded from the Internet, but rather retrieved from the " "cache, which is a lot faster.</p>" ); +} + +void KCacheConfigDialog::slotClearCache() +{ + KProcess process; + process << "kio_http_cache_cleaner" << "--clear-all"; + process.start(KProcess::DontCare); + // Cleaning up might take a while. Better detach. + process.detach(); } --- kdebase/kcontrol/kio/cache.h #1.3:1.4 @@ -48,4 +48,5 @@ public: protected slots: void configChanged() { emit changed( true ); }; + void slotClearCache(); private: Using 3.1.1 on Suse. Have the same problem. Drop down on Sybase site shows data that is no longer correct. |