You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jonghyun Kahng <jk...@gmail.com> on 2013/03/06 21:55:12 UTC

[users@httpd] CacheMaxFileSize is not working

We have used disk cache ever since v2.2.x, but in v2.4 we found that the 
directive "CacheMaxFileSize" is not working. The symptom is: its value 
is ignored and the hardwired default "1000000" is used instead.

We have seen the same problem in 2.4.2/2.4.3/2.4.4. Relevant config 
looks like

<IfModule mod_cache.c>
    <IfModule mod_cache_disk.c>
      CacheRoot "/xyz/cache"
      CacheEnable disk /abc/download
      CacheDirLevels 2
      CacheDirLength 1
      CacheMaxFileSize 500000000
      CacheMinFileSize 1
    </IfModule>
    ...
</IfModule>

I'd very much appreciate your advice.

Thanks.
Jong

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] CacheMaxFileSize is not working

Posted by Eric Covener <co...@gmail.com>.
On Wed, Mar 6, 2013 at 6:49 PM, Jonghyun Kahng <jk...@gmail.com> wrote:
> Yes, the patch fixed the problem! Thank you very much, Eric. That was the
> last hurdle in our httpd upgrade.

Thanks for verifying, and for the quality report.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] CacheMaxFileSize is not working

Posted by Jonghyun Kahng <jk...@gmail.com>.
Yes, the patch fixed the problem! Thank you very much, Eric. That was 
the last hurdle in our httpd upgrade.

Jong

On 3/6/2013 3:01 PM, Eric Covener wrote:
> On Wed, Mar 6, 2013 at 3:55 PM, Jonghyun Kahng <jk...@gmail.com> wrote:
>> We have used disk cache ever since v2.2.x, but in v2.4 we found that the
>> directive "CacheMaxFileSize" is not working. The symptom is: its value is
>> ignored and the hardwired default "1000000" is used instead.
> Looks busted.  Can you rebuild with this simple patch and confirm it's better?
>
> http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache_disk.c?view=diff&r1=1453603&r2=1453604&pathrev=1453604
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] CacheMaxFileSize is not working

Posted by Eric Covener <co...@gmail.com>.
On Wed, Mar 6, 2013 at 3:55 PM, Jonghyun Kahng <jk...@gmail.com> wrote:
> We have used disk cache ever since v2.2.x, but in v2.4 we found that the
> directive "CacheMaxFileSize" is not working. The symptom is: its value is
> ignored and the hardwired default "1000000" is used instead.

Looks busted.  Can you rebuild with this simple patch and confirm it's better?

http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache_disk.c?view=diff&r1=1453603&r2=1453604&pathrev=1453604

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org