[BUG #8522] add caching for 'build' task