Do not call `expireTags`/`getExpiration` unnecessarily (#77570)
- At the end of a request, or after a server action, when no tags were revalidated, we should not call the `expireTags` method of the configured cache handlers.
- After a server action, when no implicit tags were revalidated, we should not call the `getExpiration` method of the configured cache handlers.