/superpowers-laravel:laravel:performance-cachingfrom superpowers-laravel
Caches framework artifacts, values, and queries in Laravel with TTLs, tags, locks, and explicit invalidation strategies.
Ships in superpowers-laravel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
php artisan route:cache
php artisan config:cache
php artisan view:cache
Clear with the corresponding clear commands when needed in deployments.
Cache::remember("post:{$id}", 600, fn () => Post::findOrFail($id));
// Stable keys and scopes (e.g., tenant, locale)
Cache::remember("tenant:{$tenantId}:users:index:page:1", now()->addMinutes(5), function () {
return User::with('team')->paginate(50);
});
// Tags (supported drivers) for grouped invalidation
Cache::tags(['users'])->remember('users.index.page.1', now()->addMinutes(5), fn () => ...);
Cache::tags(['users'])->flush();
// Locks to ensure exclusive expensive work
Cache::lock('reports:daily', 30)->block(5, function () {
generateReports();
});
remember() to prevent thundering herds// Extend TTL without re-fetching/re-storing the value
Cache::touch('user_session:123', 3600);
Cache::touch('analytics_data', now()->addHours(6));
// Filesystem-backed "storage" cache driver (e.g., S3 as a K/V store)
// config/cache.php
'storage' => [
'driver' => 'storage',
'disk' => env('CACHE_STORAGE_DISK', 's3'),
'path' => env('CACHE_STORAGE_PATH', 'framework/cache/data'),
],
serializable_classes is false in config/cache.php; allow-list classes you cache as objectsCACHE_PREFIX/REDIS_PREFIX explicitly to avoid cold caches on upgradeWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravel57 skills in this plugin
/laravel:ai-sdkBuild AI features with the first-party Laravel AI SDK (Laravel 13+); agents, embeddings, images, audio, and tool calling with provider-agnostic APIs/laravel:api-resources-and-paginationUse API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly/laravel:api-surface-evolutionEvolve APIs safely using versioned DTOs/transformers, deprecations, and compatibility tests/laravel:blade-components-and-layoutsCompose UIs with Blade components, slots, and layouts; keep templates pure and testable/laravel:bootstrap-checkDetect Sail/non‑Sail and print the right command pairs for your environment; verify dependencies and key services are reachable/laravel:brainstormingInteractive design refinement tailored to Laravel projects; clarify domain, data, interfaces, testing, and quality gates while accounting for Sail/non‑Sail environmentsOther plugins' skills for the same job