Resin build up on chain depend on a number of factors
The main one is probably the type of tree. Some trees will cut clean no matter what you do, and some will deposit resin on chain no matter what you do.
The worst one I have dealt with is a Eucalyptus called Tuart. It's hard as nails, pulls up silica when water stressed, and releases a resin that turns black on the chain.
Not many millers will even mill it.
An old time Tuart faller told me about how he kept a pump pack of diesel handy and would spray it onto his chain when he had finished cutting. This softened the resin so that next time that chain hit wood, the resint came off within a few seconds. I've tried this and it does work really well for Tuart. What I found also works is continuing to run the aux oiler at the end of a cut for about 30s while the chain is just turning. This way the oil doesn't get flung off at the nose and drive sprockets so the chain gets a liberal coating of bar oil. This seems to work just as well as the diesel for most resins.
Blunt chains, pushing too hard, and insufficient bar&chain soil generate more heat so can add to resin build up. Blunt chains also generate more dust and fewer chips so more resin is able to exude out of the sawdust.