Forum Discussion
Ross_79174
Nimbostratus
Mar 11, 2009Help caching urls with unique date/time stamp
Hello irule gurus!
We have an issue on our production service where we need to cache our rss feeds to offload our backend servers. The problem is that each rss url has a unique date/ti...
Ross_79174
Nimbostratus
Mar 11, 2009Me again,
Here is what I have started with, but from looking at the cache hits, I know the trimright is not working correctly.
when RULE_INIT {
set ::fifteen_minutes 900
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/rss" } {
persist none
CACHE::enable
CACHE::uri [string trimright [HTTP::uri] &]
set cachetime $::fifteen_minutes
pool rss
} else {
pool gallery
log local0. "matches rss"
}
}
Thanks.
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
