We recently switched workflows and now run our local environment using docker — specifically using lando's wrapper on docker. My partner moved from vagrant, I moved from MAMP, where this project worked great (so we know it's not our SoberWP config that's the issue).
Now, strangely, any updates in app/Controllers/ are not reflected in the rendered page.
If in App.php there's an object hellobar with a key value pair of 'foo' => "foobar", and we change that to 'foo' => "barfoo", then @dump( $hellobar ) will still show the old value of public $foo => string(3) "foobar".
I am able to ssh into the container and see that App.php is correctly updated, and I am able to clear the sage cache, but nothing seems to be able to force that variable to update. Well, one thing — lando rebuild or stopping and restarting the container will then show the correct public $foo => string(3) "barfoo"
We're super perplexed. Variables in blade templates update fine, but it's like the Controller variables are cached. FYI the lando container has only MySQL, Nginx, and PHP, no caching.
We recently switched workflows and now run our local environment using docker — specifically using lando's wrapper on docker. My partner moved from vagrant, I moved from MAMP, where this project worked great (so we know it's not our SoberWP config that's the issue).
Now, strangely, any updates in app/Controllers/ are not reflected in the rendered page.
If in App.php there's an object
hellobar
with a key value pair of'foo' => "foobar"
, and we change that to'foo' => "barfoo"
, then@dump( $hellobar )
will still show the old value ofpublic $foo => string(3) "foobar"
.I am able to ssh into the container and see that App.php is correctly updated, and I am able to clear the sage cache, but nothing seems to be able to force that variable to update. Well, one thing —
lando rebuild
or stopping and restarting the container will then show the correctpublic $foo => string(3) "barfoo"
We're super perplexed. Variables in blade templates update fine, but it's like the Controller variables are cached. FYI the lando container has only MySQL, Nginx, and PHP, no caching.
Here's lando: