OctoPrint-BedLevelVisualizer icon indicating copy to clipboard operation
OctoPrint-BedLevelVisualizer copied to clipboard

Cache current mesh, but not in config.yaml

Open Billiam opened this issue 5 years ago • 4 comments

Caching changing data (like the current mesh) in the config forces clients to perform a full octoprint refresh when they wake, since configuration data has changed.

Similar issue here: https://github.com/foosel/OctoPrint/issues/2950 https://github.com/fabianonline/OctoPrint-Telegram/issues/156#issuecomment-448173513

Disabling the save "fixes" the issue, but then of course requires a fresh mesh level to view current data.

Billiam avatar Sep 02 '19 23:09 Billiam

Disabling the save "fixes" the issue, but then of course requires a fresh mesh level to view current data.

Which should be no issue, because you can read and update the mesh from EEPROM (Marlin UBL FW: G29 T) and trigger a refresh via the printer and/or Custom Control Editor Command(s).

I do not vote for storing the data in an extra file which would not be cleaned during Plugin Uninstall (New OctoPrint feature).

LMS0815 avatar Nov 19 '19 17:11 LMS0815

Thinking of adding a history database per @DodgeDeBoulet recommendation in above linked issue. I believe if the database is stored in the plugin's data folder it would get cleared on uninstall and clean option but will have to do additional testing on that.

jneilliii avatar Aug 01 '20 19:08 jneilliii

Thinking of adding a history database per @DodgeDeBoulet recommendation in above linked issue. I believe if the database is stored in the plugin's data folder it would get cleared on uninstall and clean option but will have to do additional testing on that.

One thing that concerns me about the plugin's data folder being cleared is the potential loss of that data when an uninstall/reinstall is required for troubleshooting an issue. I'm not familiar with OctoPrint's internals, but if there's a way to accommodate an option to backup/restore the history data, that would be a potential solution.

DodgeDeBoulet avatar Aug 02 '20 15:08 DodgeDeBoulet

All that data gets backed up with the built in backup/restore functionality and I believe only if you use the clean option during uninstall does that matter.

jneilliii avatar Aug 02 '20 16:08 jneilliii