You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -236,9 +240,9 @@ public function call(Micro $application)
236
240
237
241
We first check where we are. Using a simple `str_replace`, we create a unique file name based on the route, so that we can have a cache file name (or key depending on your cache adapter).
238
242
239
-
We then check if we are in production mode (set in our `.env` file) and if so, we invoke the cache for the view.
243
+
We then check if we are in production mode (set in our `.env` file) and if so, we invoke the cache for the view. If the data has been cached we use that.
240
244
241
-
Several variables are being sent to the view, which have originally been set in our `EnvironmentMiddleware` or other areas of the site. We then render the view, set the response contents and send the response back.
245
+
If we do not have a cache hit, several variables are being sent to the view, which have originally been set in our `EnvironmentMiddleware` or other areas of the site. We then render the view, set the response contents and send the response back.
0 commit comments