Skip to content
Discussion options

You must be logged in to vote

Clearly there's an issue regarding the load times, but in order to enable static caching on your custom route, you should get it to use the cache middleware.

Route::get('...')->middleware([
  Statamic\StaticCaching\Middleware\Cache::class
]);

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jackmcdade
Comment options

@scottmetoyer
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@scottmetoyer
Comment options

Answer selected by scottmetoyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants