litespeedtech / lscache-laravel

LSCache for Laravel framework
GNU General Public License v3.0
51 stars 14 forks source link

Laravel 8 publish provider #16

Closed eliassdogos closed 3 years ago

eliassdogos commented 3 years ago

Hi, For laravel 8 the command "php artisan vendor:publish --provider="Litespeed\LSCache\LSCacheServiceProvider"" produces config cache. I set group middleware Route::group(['prefix' => 'admin', 'middleware' => ['lscache:no-cache', 'lstags:admin']], function () { routes....

But i have proble with images update. The image is vissible after 3,4 times reload. Also i have pagespeed apache.

Any comment?

lucasRolff commented 3 years ago

For laravel 8 the command "php artisan vendor:publish --provider="Litespeed\LSCache\LSCacheServiceProvider"" produces config cache

vendor:publish will add config/lscache.php - that's all it should do.

But i have proble with images update. The image is vissible after 3,4 times reload. Also i have pagespeed apache.

lscache does not handle images, css and javascript. It only caches PHP pages (in Laravel the routes you define) - if you have to refresh 3-4 times for image updates to appear, then it's likely coming from mod_pagespeed.