Giter Site home page Giter Site logo

Comments (3)

MWDelaney avatar MWDelaney commented on August 18, 2024 1

Hi, I cannot reproduce this issue in a testing environment. Can you tell us more about your configuration?

Here are the steps I took to reproduce:

  1. Create a new Trellis instance
  2. Duplicate the site directory, call it second_site
  3. Update production wordpress_sites.yml and vault.yml adding a second site to each, changing the key, url, and subtree path as necessary
  4. Provision production
  5. Deploy first site
  6. Deploy second site
  7. Set up WordPress and log into each.
  8. Make a change on the first site (change the "styles" of the default theme).

The change was NOT reflected on the second site. This issue was not reproduced.

So can you tell us more?

from bedrock.

dalepgrant avatar dalepgrant commented on August 18, 2024

Thanks for checking @MWDelaney 🙏 I've been meaning to come back with more info as I know I wrote this report super quick.

I didn't realise but I can actually replicate this in my local. I will try to get a repeatable demo up for you to check, but all I have to do to trigger this is add the change from #714 into two sites and it goes haywire.

I'll come back to add more, but here's some screenshots to show what I'm seeing and the steps I took:

  • Start with two sites set up without changes from #714, login to both.
  • Add changes to site 1 (in the screnshots, this is the right hand side), re-login as it signs you out
  • Add changes to site 2 (in the screenshots, this is the left hand side), visit wp-admin and see site 1 details shown.

Before

Screenshot 2024-05-02 at 9 33 09 am

After

Screenshot 2024-05-02 at 9 38 54 am

from bedrock.

dalepgrant avatar dalepgrant commented on August 18, 2024

I've narrowed this down to usage with Redis, can reproduce consistently with a test setup.

Scratch that. In prepping the repo for someone to look at and reproduce, I've found the error of my ways. 🤦‍♂️

We were using Config::define('WP_CACHE_KEY_SALT', getenv('DB_NAME')); to avoid conflicts with dbs when using Redis. The getenv() turned out to be the issue. Change to env() and voila, no more issues. Should have read the issue notes more clearly, it does say about getenv() (and putenv()).

I'll leave the repo up, maybe it'll help someone else. Thanks for looking at this 🙏

from bedrock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.