Update core.js

Updates to the map move cache-clearing optimization