Background: I’ve got a dev magento site that we’ve been working on and had a big update that we wanted to push from a local db copy to dev. After copying the database over and pushing changes to the magento files my dev site redirects to localhost.
I’ve tried everything I could think of but I’m still missing something.
I’ve tried:
- Editing the db values for secure and unsecure sites to the dev values
- Deleting the magento var/cache contents, restarting php
- Grepping the magento directory for all instances of “localhost/[site]”, only instance found was in var/cache that apparently keeps repopulating with the incorrect value after deleting
- Disabled SEO redirects and full-page caching in the core_config table and flushed cache and restarted php
- Explicitly checked the web/.htaccess file for any mention of localhost, found none
- Checked nginx vhost, no mention of localhost
I’ve run out of ideas, I’d appreciate any suggestions on where to look next. At the moment I’m wondering if there is an alternative cache place that is holding the old value.
Rebooting the server solved the issue.
I believe the block objects were being cached in memcached and the reboot cleared these.