I have gotten so frustrated with the amount of Pokémon coming back to me after 12 hours, 2 days .... even 5 days and the only benefit I get for that is using revives and potions that are better used after raids.
The berry feeding in the gym is not beneficial at all to the player putting a Pokémon in the gym ... I have begun using the weedil / pidgey gym tactic and then just transferring them when they get kicked out. No revive or potion cost.
There is ZERO reason to put a good Pokémon into a gym. They can't defend it anyway ... but usually sit there for way longer than the benefit is worth.
Solution: what if the Pokémon in the gyms had the chance to bring home candy when they are fed