jclermont,
@jclermont@phpc.social avatar

Here's why we like to cache routes and views in CI, just like we do in production. It brings benefits other than performance. #php #laravel https://masteringlaravel.io/daily/2023-12-27-the-benefits-of-caching-in-ci

tvbeek,
@tvbeek@phpc.social avatar

@jclermont about not caching the configuration: we have a #CI job that runs a couple of basic commands including config:cache to be sure it doesn't crash during a deployment. (We use #GitLab CI so the jobs only depend on other jobs unless defined)

jclermont,
@jclermont@phpc.social avatar

@tvbeek do you run your tests in CI after caching config? I’m still digging into the particulars, but our tests fail with a cached config.

tvbeek,
@tvbeek@phpc.social avatar

@jclermont there isn't any dependency between the jobs so they can be in paralel or an after the other. They don't influence any other job.

jclermont,
@jclermont@phpc.social avatar

@tvbeek got it, that makes sense. So it’s a smoke test that the command runs, you’re not trying to run your tests with the cached environment (though I do recommend running tests with routes cached, I’ll share a bug story tomorrow as to why)

tvbeek,
@tvbeek@phpc.social avatar

@jclermont yes indeed, a smoke test is a good explanation for it. And I'm interested in your story 👍

jclermont,
@jclermont@phpc.social avatar
tvbeek,
@tvbeek@phpc.social avatar

@jclermont that was an interested bug to find and fix. (And a nice post to read)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • DreamBathrooms
  • magazineikmin
  • tacticalgear
  • cisconetworking
  • ethstaker
  • rosin
  • love
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • osvaldo12
  • thenastyranch
  • everett
  • provamag3
  • InstantRegret
  • tester
  • normalnudes
  • ngwrru68w68
  • cubers
  • GTA5RPClips
  • mdbf
  • Durango
  • anitta
  • modclub
  • Leos
  • megavids
  • JUstTest
  • All magazines