Variable rename for clarity

Renamed $rebuildCache variable to $needsRebuild for clarity