cache

does anyone know how to configuring caching with proxy ? I am running a
proxy but it does not cache the sites that I visit .
I have the following directives put up :

<IfModule mod_disk_cache.c>
CacheRoot /usr/local/apache2/cacheroot
CacheSize 256
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
</IfModule>

<IfModule mod_mem_cache.c>
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
</IfModule>
</IfModule>

But even though it neither gives an error neither does it update the cache
in /usr/local/apache2/cacheroot

Please help soon

Pankaj
pankajk [ Mo, 03 November 2003 08:34 ] [ ID #34784 ]

Re: cache

Pankaj.Kumar - 00CS1010 wrote:

> <IfModule mod_disk_cache.c>
> CacheRoot /usr/local/apache2/cacheroot
> CacheSize 256
> CacheEnable disk /
> CacheDirLevels 5
> CacheDirLength 3
> </IfModule>
>
> <IfModule mod_mem_cache.c>
> CacheEnable mem /
> MCacheSize 4096
> MCacheMaxObjectCount 100
> MCacheMinObjectSize 1
> MCacheMaxObjectSize 2048
> </IfModule>
> </IfModule>
>
> But even though it neither gives an error neither does it update the cache
> in /usr/local/apache2/cacheroot

The mem cache might be taking precedance over the disk cache - try
tempporarily disabling the mem cache and see if the disk cache starts to
get full.

Also check the ownership and permissions on the disk cache directory.

Regards,
Graham
--
Graham Leggett [ Mo, 03 November 2003 09:09 ] [ ID #34785 ]
Webserver » gmane.comp.apache.mod-proxy » cache

Vorheriges Thema: How to see raw cache
Nächstes Thema: htaccess and mod_proxy (reverse proxy)