Re: mod_cache logging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Wed, Mar 6, 2013 at 11:55 PM, Thiago Bemerguy <thiagobemerguy@xxxxxxxxx> wrote:
Hello,

I configured mod_cache and mod_disk_cache in my Apache Reverse Proxy, and I want to check if the requests are being treated by the cache or sent to the webserver, but I can't see any logs from Apache Cache modules, even the cache files being generated in /var/cache/mod_disk_cache. How can I configure mod_cache to generate logs?

[httpd.conf]
LogLevel debug

CustomLog logs/cached-requests.log common env=cache-hit
CustomLog logs/uncached-requests.log common env=cache-miss
CustomLog logs/revalidated-requests.log common env=cache-revalidate
CustomLog logs/invalidated-requests.log common env=cache-invalidate

LogFormat "%{cache-status}e " cachelog

CustomLog logs/cache.log cachelog

[cache.conf]

<IfModule mod_cache.c>
        <IfModule mod_disk_cache.c>
                CacheDefaultExpire 3600
                CacheEnable disk /
                CacheRoot "/var/cache/mod_disk_cache"
                CacheDirLevels 2
                CacheDirLength 1
                CacheMaxFileSize 1000000
                CacheMinFileSize 1
                CacheIgnoreCacheControl On
                CacheIgnoreNoLastMod On
                CacheIgnoreQueryString Off
                CacheIgnoreHeaders None
                CacheLastModifiedFactor 0.1
                CacheDefaultExpire 3600
                CacheMaxExpire 86400
                CacheStoreNoStore On
                CacheStorePrivate On
        </IfModule>
</IfModule>

Regards,

--
Thiago Bemerguy
thiagobemerguy@xxxxxxxxx

Are your caching modules enabled at all in the config? LoadModule blabla ...

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux