Forum Discussion

brianokelly_119's avatar
brianokelly_119
Icon for Nimbostratus rankNimbostratus
Jan 25, 2011

Clearing WA using an iRule

Hi All,

Is there a way to clear all content in the Web Acceleration cache using an iRule. I see the following example on the site:

when CACHE_RESPONSE {
  if { $expired equals 1 } {
    CACHE::expire
    log "cache expire"
  }
}
Could this be used to clear the cache?

Thanks,

Brian

1 Reply

  • Drew_Kane_23142's avatar
    Drew_Kane_23142
    Historic F5 Account
    The WebAccelerator uses multiple layers of caching:

     

     

    * HotCache (a.k.a. LTM RAM Cache)

     

    * SmartCache IMC (pvac's in-memory cache)

     

    * SmartCache HDS (pvac's disk cache)

     

     

    The iRule "CACHE" command family works with the LTM RAM Cache. For the SmartCache, you might investigate the WebAccelerator's Invalidation Rules.