Added code to flush on build

Replaced unnecessary references to ?flush=1 and ?flush=all.
Added code to enable the build task to also flush.