Forum Discussion
Andrea_Arquint
Nov 03, 2010Nimbostratus
troubles with cache dump
Hi I want see what is in the cache. So the following link does it but I remark strange behavior with it: http://devcentral.f5.com/wiki/defau...trace.html Independently what is confi...
hooleylist
Nov 10, 2010Cirrostratus
Hi BB,
I think the issue might be the use of a static variable to store the CACHE::trace output. Can you try this example instead to make a request to a URI which ends in /arachache. Until we figure this out, it would be safest to test this on a separate test virtual server.
when HTTP_REQUEST {
Check if request is to our special cache dump URI
if { [HTTP::uri] ends_with "/aracache" } {
Force this request to be answered from cache
CACHE::enable
set cache_trace 1
} else {
set cache_trace 0
}
}
when CACHE_RESPONSE {
Check if request was for a cache trace
if { $cache_trace }{
HTTP::respond content "Cache trace output:\r\n\r\n[CACHE::trace]\r\n\r\n"
}
}
Thanks, Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects