fix for issue #20
renderCachePath not updated on cacheActive=0

moved cacheActive check lower in compute block
to support this feature