Skip to content

Projects plugin cache not being updated #6306

Closed
@alexvoss

Description

@alexvoss

Context

Using the projects plugin in Insiders, I am having the problem that it seems the cache is never updated.

Bug description

Changes to the mkdocs.yml files in project do not get picked up. I am changing the color scheme as an example, see below. It seems the config.pickle file in .cache is not getting updated when a mkdocs.yml file in a project is changed.

Related links

Reproduction

9.4.8+insiders.4.43.0-projects-plugin-cache.zip

Steps to reproduce

  1. rm -rf .cache
  2. mkdocs serve
  3. Open subproject in a browser and observe that the project has an indigo palette
  4. In another window, edit the project's mkdocs.yml to set the palette to red
  5. Make a change to the docs/index.md to see that the browser updates
  6. You will see that while the change from (5) shows, the palette is still indigo
  7. Restart mkdocs serve
  8. Observe that the color scheme still has not changed.
  9. Stop mkdocs serve
  10. rm -rf .cache
  11. Start mkdocs serve
  12. Observe that the color scheme has changed now.

Btw. I selected a browser below without thinking and it seems this selection cannot be reset?

Browser

Other

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions