PHP: Do not run rebuilds if not needed.