重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
laravel%3Aperformance-caching by jpcaparas/superpowers-laravel
npx skills add https://github.com/jpcaparas/superpowers-laravel --skill laravel:performance-cachingphp artisan route:cache
php artisan config:cache
php artisan view:cache
在部署过程中需要时,使用相应的 clear 命令进行清除。
Cache::remember("post:{$id}", 600, fn () => Post::findOrFail($id));
// 稳定的键和范围(例如,租户、语言环境)
Cache::remember("tenant:{$tenantId}:users:index:page:1", now()->addMinutes(5), function () {
return User::with('team')->paginate(50);
});
// 标签(受支持的驱动程序)用于分组失效
Cache::tags(['users'])->remember('users.index.page.1', now()->addMinutes(5), fn () => ...);
Cache::tags(['users'])->flush();
// 锁确保独占执行高开销工作
Cache::lock('reports:daily', 30)->block(5, function () {
generateReports();
});
remember() 以防止惊群效应广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
每周安装次数
53
代码仓库
GitHub 星标数
122
首次出现
2026年1月21日
安装于
claude-code39
opencode37
gemini-cli36
codex33
cursor33
github-copilot32
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 herdsWeekly Installs
53
Repository
GitHub Stars
122
First Seen
Jan 21, 2026
Installed on
claude-code39
opencode37
gemini-cli36
codex33
cursor33
github-copilot32
TanStack Query v5 完全指南:React 数据管理、乐观更新、离线支持
2,500 周安装