LibreTexts / Libretext

GNU General Public License v3.0
20 stars 8 forks source link

Modify or disable nodePrint auto-cleanup #272

Open Miniland1333 opened 1 year ago

Miniland1333 commented 1 year ago

https://github.com/LibreTexts/Libretext/blob/5ab710dec8291a5bdba5e613773748a0050ace46/nodePrint/nodePrint.js#L383-L387

Since nodePrint refresh is now operating less frequently than it was initially designed for, I would suggest reviewing whether the maxAge should be increased or perhaps this chunk of code should be completely disabled.

Initially, the code was supposed to do a full refresh every month (30 days), and this forced cleanup would only happen on files that exceeded 100 days or three failed full refreshes. Under the current batch schedule, perhaps maxAge should be increased closer to six months.