<?php
namespace App\Services;
use App\Models\Order;
use Illuminate\Support\Facades\Cache;
{% load cache %}
<section class="dashboard">
<h1>{{ team.name }} — Overview</h1>
{% cache 3600 team_order_stats team.id stats_version %}
<div class="stat-grid">
module Cacheable
extend ActiveSupport::Concern
def cache_query(prefix, scope, expires_in: 15.minutes)
key = [prefix, cache_version_token(scope)].join("/")
<?php
namespace App\Report;
use App\Repository\OrderRepository;
use Symfony\Contracts\Cache\ItemInterface;