-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Projects plugin cache not being updated #6306
Comments
Thanks for reporting! Could you maybe check if data is updated when you disable the plugins:
- projects:
cache: false |
Will do. As soon as I managed to produce a new zip file - because the info plugin did not include the projects directory? |
Ok, here is the new |
Ok, with I did try to debug this but the only thing I could find out is that line 108 in plugin.py might need to be Changing this alone did not fix it, though. |
The cache must be created - we need a way to store intermediate results. This is the same for all plugins. What we could do in theory (but I haven't done it, because nobody complained) is to create a temporary directory and use that for intermediate storage, but the plugins definitely need intermediate storage. Thus, I'll investigate as soon as possible. |
Fixed in By the way, I'm very sorry this took so long, but you know: #6307 kind of eats up all my time right now 😅 |
Released as part of 9.4.10+insiders-4.43.1. |
@alexvoss does this work better for you now? |
Did a quick test by modifying the |
That's great to hear! I'm really looking forward making the editing experience as smooth as possible. |
Reopening, there still seem to be some issues. |
I've started breaking the projects plugin into discernable parts that will make management of projects simpler, and address the issues with caching as well. This will take some more time, but I'm confident that I'll have a working prototype by the end of the week. I'll also fix #6399 on the way. |
I wanted to wait with the next release until I finished the refactoring, but it's gotten so big, I needed to get it out before it wouldn't fit through the door anymore. I'll continue working on this and I'm close to having a working version fixing the caching issues and improving the overall structure of the plugin. |
Fixed in |
Released as part of 9.5.2+insiders-4.47.1. |
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 theconfig.pickle
file in.cache
is not getting updated when amkdocs.yml
file in a project is changed.Related links
Reproduction
9.4.8+insiders.4.43.0-projects-plugin-cache.zip
Steps to reproduce
rm -rf .cache
mkdocs serve
mkdocs.yml
to set the palette tored
docs/index.md
to see that the browser updatesmkdocs serve
mkdocs serve
rm -rf .cache
mkdocs serve
Btw. I selected a browser below without thinking and it seems this selection cannot be reset?
Browser
Other
Before submitting
The text was updated successfully, but these errors were encountered: