statamic / docs

Statamic Documentation
https://statamic.dev
Other
110 stars 374 forks source link

Wrong invalidation array nest examples? #1368

Closed johncarter- closed 3 months ago

johncarter- commented 3 months ago

I'm a bit confused. Are the invalidation config arrays wrong?

For example:

https://github.com/statamic/docs/blob/master/content/collections/docs/static-caching.md?plain=1#L418-L423

return [
    'class' => null,
    'invalidation' => [
        'rules' => 'all',
    ]
];

Should read:

return [
    //... 
    'invalidation' => [

        'class' => null,

        'rules' => 'all',

    ],
    //... 
];
duncanmcclean commented 3 months ago

Will be fixed by #1366.