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 debugCustomLog logs/cached-requests.log common env=cache-hitCustomLog logs/uncached-requests.log common env=cache-missCustomLog logs/revalidated-requests.log common env=cache-revalidateCustomLog logs/invalidated-requests.log common env=cache-invalidateLogFormat "%{cache-status}e " cachelog
CustomLog logs/cache.log cachelog[cache.conf]<IfModule mod_cache.c><IfModule mod_disk_cache.c>CacheDefaultExpire 3600CacheEnable disk /CacheRoot "/var/cache/mod_disk_cache"CacheDirLevels 2CacheDirLength 1CacheMaxFileSize 1000000CacheMinFileSize 1CacheIgnoreCacheControl OnCacheIgnoreNoLastMod OnCacheIgnoreQueryString OffCacheIgnoreHeaders NoneCacheLastModifiedFactor 0.1CacheDefaultExpire 3600CacheMaxExpire 86400CacheStoreNoStore OnCacheStorePrivate On</IfModule></IfModule>Regards,Are your caching modules enabled at all in the config? LoadModule blabla ...