Apigee Cache possible to using TimeOfDay twice

We want to clean the cache twice a day at specific hour. For example at 8h AM (08:00:00) and 1h PM (13:00:00)

I try to add to condition like this (with 1 minute before each to test):

<TimeOfDay>14:54:00</TimeOfDay>

<TimeOfDay>14:55:00</TimeOfDay>

Unfortunately it takes only the first TimeOfDay , not the second.

Is there a way to use 2 or 3 specific hours for each day ?

thanks

Stephane

0 1 104
1 REPLY 1

No, there is no possibility to do that.

You may be able to work around that, and get the behavior you want.

For example you could configure an API Proxy flow that uses InvalidateCache to allow clearing the cache at a particular time. You would call this yourself explicitly at 8am and 1pm (or via a cron job).

Or you could use different cache keys -- one for morning, and one for evening. Make the cache live for 12 hours, and use a keyFragment that indicates morning or afternoon.