Cache not updating depending on domain www

Permalink
I have a website located atwww.www.responsibletreemanagement.co.uk,... and making edits works fine, but if you navigate to the site without the 'www.' at the beginning (i.e.http://responsibletreemanagement.co.uk)... the changes do not appear until you clear the cache of the site.

See Attached Image

Anybody tell me why this might be? Really quite annoying as it means deleting the cache after each change!

Thanks in advance folks.

EDIT: It seems which ever domain you are editing at the time (ie with the www. in the address) renders the changes on that domain, and vice versa if that makes sense.

LATEST: It took me ages to figure this out, well, find a work around anyway. I'm not sure why it was doing it, but I ended up adding the BASE_URL in the config/site.php file and forcing it to render the site address with www. in front. The code (for anyone who doesn't know) was:

define('BASE_URL', 'http://www.responsibletreemanagement.co.uk');
define('DIR_REL', '');

Hope that helps people.

1 Attachment