Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route middleware memory exhausted #16

Open
tomvo opened this issue Jul 23, 2015 · 0 comments
Open

Route middleware memory exhausted #16

tomvo opened this issue Jul 23, 2015 · 0 comments

Comments

@tomvo
Copy link

tomvo commented Jul 23, 2015

I'm using dingo/api and I want to exclude the caching middleware for API routes so instead of registering the middlware in the kernel $middleWare property I wanted to use the routemiddleware.
However when registeren it like so:

        'httpcache.cache' => \Barryvdh\HttpCache\Middleware\CacheRequests::class,
        'httpcache.esi' => \Barryvdh\HttpCache\Middleware\ParseEsi::class,

and then loading it like so:

Route::group(['middleware' => ['httpcache.cache','httpcache.esi'] ], function(){

results in a memory exhausted fatal error. When I load just of the two it works fine.
Any clue on what this might be?

edit: changed endless loop to memory exhausted fatal error

@tomvo tomvo changed the title Route middleware endless loop Route middleware memory exhausted Jul 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant