dissolved the epsom in warm water and sprayed over whole plant above and under leaves

how often should i do the above?
should i add some epsom salts to the feed?
how can i avoid mag def in the future? (tap water = high calcium = mag lock out)