[Solved] Cache not clearing (after root_url change)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Utopian
New Member
New Member
Posts: 4
Joined: Sun Nov 08, 2009 8:54 pm

[Solved] Cache not clearing (after root_url change)

Post 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.]
Last edited by Utopian on Sat Nov 14, 2009 1:52 pm, edited 1 time in total.
replytomk3

Re: Cache not clearing (after root_url change)

Post by replytomk3 »

more info, clearer explanation
Utopian
New Member
New Member
Posts: 4
Joined: Sun Nov 08, 2009 8:54 pm

Re: Cache not clearing (after root_url change)

Post 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
Utopian
New Member
New Member
Posts: 4
Joined: Sun Nov 08, 2009 8:54 pm

Re: Cache not clearing (after root_url change)

Post by Utopian »

Apparently that message took a little while to post :(
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Cache not clearing (after root_url change)

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Utopian
New Member
New Member
Posts: 4
Joined: Sun Nov 08, 2009 8:54 pm

Re: Cache not clearing (after root_url change)

Post by Utopian »

Wonderful, that worked perfectly Rolf, thank you.

Keep up the good work with CMSMS!

Utopian
Post Reply

Return to “CMSMS Core”