chilipie-kiosk icon indicating copy to clipboard operation
chilipie-kiosk copied to clipboard

Clear cache and refresh on start?

Open sam98brown opened this issue 2 years ago • 6 comments

Is it possible to clear cache and refresh on boot? I have an issue where the page wont load without a cache clear and refresh.

sam98brown avatar Jul 22 '22 14:07 sam98brown

I have all of mine write-protected (overlay) so that they don’t get corrupted when my staff unplug them without shutting them down. That would serve the same function.

sborn avatar Jul 22 '22 14:07 sborn

Please could you point me in the right direction for doing that?

sam98brown avatar Jul 22 '22 14:07 sam98brown

(From memory, so let me know if I’m off) sudo raspi-config Option number 4 (performance options, maybe?) Overlay file system (enable) Write protect (yes) Finish Yes to reboot

sborn avatar Jul 22 '22 14:07 sborn

Great, thanks for the help. Just so I'm sure, how does this ensure the cache issue won't be a problem?

sam98brown avatar Jul 22 '22 14:07 sam98brown

Have you ever booted from a “live CD” with anything? Where you don’t have a hard drive running the show, but the computer acts as if it is writing to a hard drive? Even though CDs can’t be written to?

sborn avatar Jul 22 '22 14:07 sborn

Anyway, it basically makes it like that. So every time it reboots, it is fresh again. Nothing that happens during previous sessions is stored. So before you enable all of that, make sure it is in the state that you want it to boot to every time.

sborn avatar Jul 22 '22 16:07 sborn