MDeLuise / plant-it

🪴 Self-hosted, open source gardening companion app
https://plant-it.org
GNU General Public License v3.0
686 stars 25 forks source link

Add frontend cache cleanup #94

Closed MDeLuise closed 9 months ago

MDeLuise commented 9 months ago

Hi Plant-it Community!
This PR introduces a new feature to automatically clean up the frontend cache after a specified period. The cleanup interval is now determined by the CACHE_TTL_DAYS parameter in the frontend.env file.

What's new?

This enhancement ensures that outdated cache entries are regularly removed, optimizing the app's performance.

Why is it important?

Automated cache cleanup helps manage storage efficiently.

How to Use?

Simply set the desired cache time-to-live in days using the CACHE_TTL_DAYS parameter in the frontend.env file. The cache cleanup process will run at regular intervals based on this configuration.



Cheers and happy planting! 🌿🌼