Skip to content

Commit

Permalink
Remove response cache
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed May 21, 2024
1 parent bc5d961 commit 01937c0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 208 deletions.
3 changes: 0 additions & 3 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class Kernel extends HttpKernel
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
'throttle:api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\Spatie\ResponseCache\Middlewares\CacheResponse::class,
],
];

Expand All @@ -66,8 +65,6 @@ class Kernel extends HttpKernel
// 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequestsWithRedis::class, // TODO: Fix tests
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
'cacheResponse' => \Spatie\ResponseCache\Middlewares\CacheResponse::class,
'doNotCacheResponse' => \Spatie\ResponseCache\Middlewares\DoNotCacheResponse::class,
'abilities' => \Laravel\Sanctum\Http\Middleware\CheckAbilities::class,
'ability' => \Laravel\Sanctum\Http\Middleware\CheckForAnyAbility::class,
];
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"meilisearch/meilisearch-php": "^1.0",
"spatie/array-to-xml": "^3.1",
"spatie/laravel-query-builder": "^5.2",
"spatie/laravel-responsecache": "^7.4",
"spatie/laravel-sluggable": "^3.4",
"srwiez/thumbhash": "^1.1",
"symfony/browser-kit": "^6.2",
Expand Down
137 changes: 27 additions & 110 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 0 additions & 94 deletions config/responsecache.php

This file was deleted.

0 comments on commit 01937c0

Please sign in to comment.