1. 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

Discussion in 'Troubleshooting and Problems' started by Adam Howard, May 29, 2012.

  1. Adam Howard

    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)

  2. Russ

    Russ Well-Known Member

    Go to sleep, and find out the ridiculous error you are making in the morning? ;)
    Coop1979 and TheVisitors like this.
  3. Chris D

    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.
  4. Adam Howard

    Adam Howard Well-Known Member


    Different config.php files too
  5. Chris D

    Chris D XenForo Developer Staff Member


    I don't even...

  6. Adam Howard

    Adam Howard Well-Known Member

    :ROFLMAO: Now you know how I feel
  7. Adam Howard

    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.
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Point them to different folders or specify a different cache_id_prefix for each forum.
  9. Adam Howard

    Adam Howard Well-Known Member

    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

Share This Page