Skip to content

Warm entries automatically after clearing them #977

@stuartcusackie

Description

@stuartcusackie

It seems to me that the static cache should be automatically warmed again after it is cleared.

For example, if I make changes to my 'primary' nav then the entire static cache is cleared. Rules:

'rules' => [
  'navigation' => [
    'primary' => [
        'urls' => [
        '/*'
      ]
    ],

So now nothing is cached and the website is slow. I have to manually run static:warm but usually I am unaware when my clients make changes to the navs. The same applies to globals.

I think this should be done automatically after any entry's static cache is cleared. It might be complicated because we may want to queue the warming, so I guess this would have to be an optional feature.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions