Re: mod_cache logging

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

 



http://httpd.apache.org/docs/current/mod/mod_cache.html#status

Based on the caching decision made, the reason is also written to the subprocess environment under one the following four keys, as appropriate:

cache-hit
The response was served from cache.
cache-revalidate
The response was stale and was successfully revalidated, then served from cache.
cache-miss
The response was served from the upstream server.
cache-invalidate
The cached entity was invalidated by a request method other than GET or HEAD.


2013/3/6 Igor Cicimov <icicimov@xxxxxxxxx>




[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


Personally never heard of the above cache-* env variables, only aware of no-cache one. I doubt they exist and need to be set in the config somehow in order for your logs to work since they are set as condition for them. Did yoy create the config your self or you copied it from somewhere? If that's the case probably the part about setting those env vars was omitted from the guide/example you followed.



--
Thiago Bemerguy
thiagobemerguy@xxxxxxxxx

[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