Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Oct 16, 2023
2 parents 806f970 + 0859ef7 commit 676adec
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion config/static.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,30 @@
'path' => storage_path('public/static'),

'build' => [
/**
* Use a web crawler to find all links to cache
*/
'crawler' => true,

/**
* Build cache for non-dynamic routes
*/
'routes' => false,

/**
* Build cache for these defined URLs
* Ideally when using dynamic routes, like /posts/{slug}
*/
'urls' => [],

/**
* Clear static files before building static cache.
* When disabled, the cache is warmed up rather by updating and overwriting files instead of starting without an existing cache.
*/
'clear_before_start' => false,

/**
* Concurrency for crawling to warm up static cache.
* Number of concurrent http requests to build static cache.
*/
'concurrency' => 5,

Expand Down

0 comments on commit 676adec

Please sign in to comment.