• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Master = Test = Master

Adam Howard

Well-known member
#1
If this is a bug, it is a very annoying bug.

I've done this with every forum software known (seriously), so I'm beyond puzzled as to what the hell is going on.

  • I took my master site, backed up all the files and the database
  • Copied all the files and imported into another database ... ie .... Test site (complete mirror image).

Changed the paths on the test site and rebuild all the cache. Yet whatever I do to the test site, ends up happening on the main / master site. Now here is a kicker, whatever I do on the main / master site, also affects the test site. :confused:o_O:eek:

  • The address in the address bar is completely different
  • They're both on a different path on the server
  • They each have their own database (neither of them are names the same, have their own user & password too)

Thoughts?
 

Chris D

XenForo developer
Staff member
#3
It sounds to me like the config.php file for both sites must have exactly the same database name and logins configured.

There's nothing else that makes sense.
 

Adam Howard

Well-known member
#7
SOLUTION:

This "could be" a bug (maybe).

I'm using the file cache method

PHP:
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] ['cache_dir'] = '/PATH GOES HERE';
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] ['cache_id_prefix'] = 'xf_';
And even though I did a full rebuild

xenforo path /install

Rebuild

The file cache must have remained (no clue why).
Now why on earth this somehow linked the two.... I have no idea. o_O

But deleting that folder and making a new one automatically corrected the error.