Page 1 of 1

[Solved] Cache not clearing (after root_url change)

Posted: Sun Nov 08, 2009 9:06 pm
by Utopian
Hey all. I really like the software by the way. But now I've hit a problem.

I tried to change the root_url, by downloading, editing and re-uploading my config.php. Then I pressed " Clear " (cache) in the admin settings, but it still hasn't updated, either on the site, or in site information.

I'm running CMSMS 1.6.6 "Bonde", on Apache. I have access to all the files and databases. I'm logged in using the root user.

Thanks,
Utopian

--
[Edited to mark as solved.]

Re: Cache not clearing (after root_url change)

Posted: Sun Nov 08, 2009 9:16 pm
by replytomk3
more info, clearer explanation

Re: Cache not clearing (after root_url change)

Posted: Sun Nov 08, 2009 9:22 pm
by Utopian
Um, okay, here goes:
* I set up my site at one URL, www.foo.com
* I then registered a new domain, www.bar.com, which I want to use from now on
* I downloaded the config.php from the main directory
* I changed $config['root_url'] = 'http://www.foo.com'; to $config['root_url'] = 'http://www.bar.com';
* I re-uploaded it over the old one
* I went to Global settings > Advanced and pressed the "Clear" button
* However, all my links still point to foo.com, "View my site" in the CMSMS interface still points to foo.com, and so forth i.e. nothing has changed

How can I switch over to using bar.com rather than foo.com? I thought the above would work but it didn't.

Thanks,
Utopian

Re: Cache not clearing (after root_url change)

Posted: Thu Nov 12, 2009 5:53 pm
by Utopian
Apparently that message took a little while to post :(

Re: Cache not clearing (after root_url change)

Posted: Thu Nov 12, 2009 9:37 pm
by Rolf
Hello Utopian

Try to create a new config.php

Upload the install folder back on to the new server.
Open ....com/install/
Proceed the whole procedure except the creation of db-tables and default content. Uncheck this option!
So DON'T create tables and default content.
If you do your database will be overwritten!
A new backup is always good to do first.

Delete the install folder afterwards
And chmod 444 the config.php file.

Good luck Rolf

Re: Cache not clearing (after root_url change)

Posted: Sat Nov 14, 2009 1:51 pm
by Utopian
Wonderful, that worked perfectly Rolf, thank you.

Keep up the good work with CMSMS!

Utopian