Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

InvalidateCache policy is clearing all cache entries

Hello!

I have a populate cache policy below:

maureenyogyog_0-1631067517589.png

and this is my invalidate cache policy:

maureenyogyog_1-1631067661139.png

I need to purge all cache entries by the key fragment <KeyFragment ref="clientInfo.cif" type="string"/> but what's happening is that all cache entries are being purged.

I also tried referencing an extracted variable instead of <KeyFragment ref="cache.request.uri" type="string"/> in my populate cache policy.

I also tried using scope instead of prefix but got the same result. 

What only worked is when I had the same key fragments in the populate cache and invalidate cache policies but this is not be applicable on the requirement.

Thanks!

 

 

1 4 185
4 REPLIES 4