XF 1.1 Master = Test = Master

Adam Howard

Well-known member
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)

Chris D

XenForo developer
Staff member
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

This "could be" a bug (maybe).

I'm using the file cache method

$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


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.

Adam Howard

Well-known member
Point them to different folders or specify a different cache_id_prefix for each forum.
They had their own folder, but not their own prefix. As it was only file cache and not apc or xcache or memcache .... I really didn't think prefix mattered