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

Support navigation and globals in the static caching invalidation #2778

Merged
merged 1 commit into from
Oct 30, 2020

Conversation

jasonvarga
Copy link
Member

Duncan's PR #2639 was wiping out all the URLs when you edit a nav or global. Rather, you can define the URLs like you can with collections and taxonomies.

'invalidation' => [

    'rules' => [
        'globals' => [
            'settings' => [
                'urls' => [
                    '/*'
                ]
            ]
        ],
        'navigation' => [
            'links' => [
                'urls' => [
                    '/*'
                ]
            ]
        ]
    ],

],

In there, you're free to just tell it to wipe them all, if that's what you want.

Also clean up tests by using regular mocks, not spies, and do a little tidying.

Closes #2639
Closes #2393

Clean up tests by using regular mocks, not spies, and do a little tidying.

Closes #2639
Closes #2393

Co-authored-by: Duncan McClean <duncan@mcclean.co.uk>
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

Successfully merging this pull request may close these issues.

Static Cache not invalidated when entry or term deleted, or global updates
1 participant