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

Homepage cache is generated on every request #93

Open
kriosmane opened this issue Jan 10, 2022 · 0 comments
Open

Homepage cache is generated on every request #93

kriosmane opened this issue Jan 10, 2022 · 0 comments

Comments

@kriosmane
Copy link

Hi,

I'm developing a website using Twill and I'm using this package to cache the pages and it actually works really fine, my only problem is that the homepage is cached in every request (pc__index__pc.html).

I've chosen to specify which URL I want to cache so I can avoid the backed to be cached

this is working pretty well:

Route::middleware('page-cache')->name('page.show')->get('{slug}', 'App\Http\Controllers\PageController@show');

but for the homepage is not working as it should, the cache is generated on every request

Route::middleware('page-cache')->name('homepage.show')->get('/', 'App\Http\Controllers\HomePageController@show');

The application is served with Nginx

Do you have any idea on how to fix that?

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