You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Russell Bell <ru...@gmail.com> on 2008/12/16 21:03:56 UTC
How do I know that caching is working?
I apologize for asking a naive question. I looked in the FAQ
and searched the mailing list and google.
I installed a flash drive large enough to hold all the static
content of my website. I built Apache (2.0.63) with the cache,
file_cache, disk_cache, and mem_cache modules installed;
httpd -l so reports.
I configured httpd.conf to enable disk caching for my whole
website, then disabled it for the dynamic data.
CacheEnable disk /
CacheDisable /livedata
CacheRoot /usb
CacheMaxFileSize 10000000
CacheSize 10000000
CacheDirLength 4
CacheDirLevels 5
I restarted Apache. I expected to see files appear in /usb.
I haven't. What's happening?
Thanks for your attention.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How do I know that caching is working?
Posted by Dan Poirier <po...@pobox.com>.
"Russell Bell" <ru...@gmail.com> writes:
> I installed a flash drive large enough to hold all the static
> content of my website. I built Apache (2.0.63) with the cache,
> file_cache, disk_cache, and mem_cache modules installed;
> httpd -l so reports.
> I configured httpd.conf to enable disk caching for my whole
> website, then disabled it for the dynamic data.
>
> CacheEnable disk /
> CacheDisable /livedata
> CacheRoot /usb
> CacheMaxFileSize 10000000
> CacheSize 10000000
> CacheDirLength 4
> CacheDirLevels 5
>
> I restarted Apache. I expected to see files appear in /usb.
> I haven't. What's happening?
- Have you made requests? Files would only appear as they are
requested.
- Does /usb exist? Is it writeable?
- Is your content access-protected? If so, it won't be cached.
- Is there anything in the error log?
--
Dan Poirier <po...@pobox.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org