Re: Environment variables..
"Koan-Sin Tan" <[email protected]>
| Newsgroups | gmane.comp.kde.devel.konq-e |
|---|---|
| Message-ID | <[email protected]> |
make
m_maxCacheSize = KProtocolManager::maxCacheSize();
somewhere appropriate in konq-embed/kdesrc/kio/http/http.cc.
E.g., the attached file is a quick and dirty hack make it work.
On 12/18/06, saravanan sar <[email protected]> wrote:
> hi everyone,
>
> i saw in the konq/e webpage
> (http://www.konqueror.org/embedded/--FAQ)the browsing can
> be made faster by setting the cache size. can anyone say me how to set
> this..? is there any file that i need to edit ..?
>
> thanks in advance.
>
> saravanan
>
>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
> Download Now! http://messenger.yahoo.com/download.php
> _______________________________________________
> konq-e mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/konq-e
>
>
>
_______________________________________________
konq-e mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/konq-e
konq-e-cache.diff
(application/octet-stream, 879 B)
--- Software System/Browser system/code/kdenox/konq-embed/kdesrc/kio/http/http.cc 2006/12/06 00:33:58 270
+++ Software System/Browser system/code/kdenox/konq-embed/kdesrc/kio/http/http.cc 2006/12/06 08:55:57 284
@@ -228,7 +228,8 @@
m_protocol = protocol;
m_maxCacheAge = DEFAULT_MAX_CACHE_AGE;
- m_maxCacheSize = DEFAULT_MAX_CACHE_SIZE / 2;
+ //m_maxCacheSize = DEFAULT_MAX_CACHE_SIZE / 2;
+ m_maxCacheSize = KProtocolManager::maxCacheSize();
m_remoteConnTimeout = DEFAULT_CONNECT_TIMEOUT;
m_remoteRespTimeout = DEFAULT_RESPONSE_TIMEOUT;
m_proxyConnTimeout = DEFAULT_PROXY_CONNECT_TIMEOUT;
@@ -4936,6 +4937,7 @@
return;
}
long file_pos = ftell( m_request.fcache ) / 1024;
+ m_maxCacheSize = KProtocolManager::maxCacheSize();
if ( file_pos > m_maxCacheSize )
{
kdDebug(7113) << "writeCacheEntry: File size reaches " << file_pos