Forum Discussion

Cristian_Daniel's avatar
Cristian_Daniel
Icon for Nimbostratus rankNimbostratus
Mar 28, 2012

WAM Disabling for a application module doesn't work

The iRules are:

 

 

 

 

 

 

 

 

when HTTP_REQUEST {

 

 

 

if { ([HTTP::uri] contains "movil") } {

 

 

 

WAM::disable

 

CACHE::disable

 

 

 

}

 

 

 

}

 

 

 

when HTTP_RESPONSE {

 

if { [HTTP::header "Location"] contains "movil" } {

 

 

WAM::disable

 

HTTP::close

 

CACHE::disable

 

}

 

}

 

 

 

 

The when i use the cache::disable option in v11 throws me the error by the LTM log TCL error: Operation not supported (line 1) invoked from within "CACHE::disable"

 

 

 

When i see this i try to remove the sentence, but after that the application doesn't work. The execution of the iRule goes with problem but WAM is not disabled. :( Please Help Me

 

  • tdk_51797's avatar
    tdk_51797
    Historic F5 Account
    If you have a VS with WAM on it, you don't need (and can't invoke) CACHE::disable. So drop the two CACHE::disable lines, and you should be good to go. Hope that helps. :-)