Warming the static cache on custom route with parameters #9228
-
I have a custom controller with a route that looks like this:
The route is not getting hit when warming the static cache, presumably because Statamic has no idea what to plug into the {slug} parameter. Is there any way to force Statamic to crawl a URL I specify? Something like the the exclude config array, but for inclusion? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I tried creating a new console command that calls static:warm and then includes a little logic to loop through my collection and manually hit the routes I need. Seems to work just fine:
Unless there's a built-in way I think I'll just go with this. |
Beta Was this translation helpful? Give feedback.
I tried creating a new console command that calls static:warm and then includes a little logic to loop through my collection and manually hit the routes I need. Seems to work just fine:
Unless there's a built-in way I think I'll just go with this.