Forum Discussion
Mic_65039
Apr 18, 2012Nimbostratus
RAM CACHE and Stale-if-error option
Hi, I'm using a PROFILE with RAM Cache enabled and a Max age=600 Is there an option on the BIG-IP such "Stale-if-error" which will allow to serve the stale content in RAM cache when orig...
Mic_65039
Apr 19, 2012Nimbostratus
Hi Aaron,
I had the reponse from F5 support and they said it's not possible with RAM cache profile.
I have another idea, let me know if you could help me.
I will increase the max-age to 1week in the profile and will set use this script to clear the cache:
Save the output file name as the script name
OUT=/var/log/`basename $0`.out
Print the date and script name
echo "`date +%Y%m%d_%H%M%S`: `basename $0`: starting" >> $OUT
List the current RAM cache entries for one HTTP profile
echo "Entries before delete:" >> $OUT
b profile http HTTP_1 ramcache entry show >> $OUT
Delete current RAM cache entries for one HTTP profile
b profile http HTTP_1 ramcache entry all delete
List the current RAM cache entries for one HTTP profile
echo "Entries after delete:" >> $OUT
b profile http HTTP_1 ramcache entry show >> $OUT
BUT i'd like to include a condition:
If Pool_1 is down, then do not delete the RAMCACHE.
Do you know to write this?
Thanks
Mic
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