Clear Magento Cache Manually

Magento has built in functionality to flush the cache, but what happens if you can't access the admin panel?

Magento has built in functionality to flush the cache, but what happens if you can't access the admin panel?

Having just moved a Magento shop to our servers, there was also a change in the directory from /shop to the root directory.

Every time the website was accessed, it would still redirect to /shop. There are 2 entries in the database which reference the URL and these need changing - but that wasn't enough.

The cache was kicking in and deciding that the website was still at /shop. Thankfully, clearing it is easy :)

Go to /var/cache and /var/session and delete the files and folders from within them. Then access your Magento Shop and away you go!