Forum Discussion
Mic_65039
Nimbostratus
Apr 19, 2012Hi 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