dev site reverts to production site url when clearing cache I have moved a copy of my production site to a development box. When I clear cache at admin/settings/performance or save settings on a theme, all of a sudden the URL jumps from localhost/example/admin/build/themes/settings/theme to www.example.com/admin/build/themes/settings/theme for instance. I have cleared all of my cache tables manually via phpmyadmin and for the browser (chrome, cleared everything "from the beginning of time"). I can't successfully run cron . 

EDIT: If I had enough reputation, I would downvote myself. I had the "base url" setting enabled in settings.php.
@Clive's suggestion jarred my memory and I figured it out. I have a multisite setup that I was migrating and had the base url setting in settings.php set to www.example.com and I had forgotten to change it to the localhost url. When I commented out the base url setting, everything was fine.