Forum Discussion
Darren_Person_2
Nimbostratus
Jan 11, 2009RAMCACHE - Setting Content expiration
Hi All,
We utilize RAMCache heavily and would love to know if there is a workaround or upcoming feature fix. We would like to do the following:
For URI's that contain a certain value (let's say .20.), tell RAMCache to hold that object for 1 hour
ex: http:///some.20.html
For URI's that contain a certain value (let's say .2.), tell RAMCache to hold that object for 5 minutes
ex: http:///some.2.html
Right now, I can set this at a policy level, but I don't see anyway to make this adjustment at a per URI or request level. Any thoughts or workaround would be greatly appreciated or if F5 could open up the Expires method for setting in an iRule!
1 Reply
- hoolio
Cirrostratus
You should be able to do this using CACHE::age to get the age of the cached object and CACHE::expire to clear the object from the cache. There is a Codeshare example which demonstrates this:
Using iRules to manipulate cache (Click here)
If you have questions, reply here. Else if you test a working example can you post it here and/or in the Codeshare?
Thanks,
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
