MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    How to clear cache?

    Development
    1
    2
    1995
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by A Former User

      I’m making a module which operates several images. After finishing development on my Mac then testing on RPi, I found something.
      I’ve found cached images are consuming too much RAM of RPI.
      Just showing dozens of x00kb images takes memory consumption around 20%. I always remove HTML node for images after showing that. but memory is not returned. I guess it might be caused by cached data. Because, when I reload images previously already loaded and removed once, the memory doesn’t go down. Loading new images makes RAM goes down even after removed. So I doubt the cache issue.

      So I want to clear cache of Electron after my process is processed. How can I do that?

      I think there might be something like session.clearCache()…

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @Guest last edited by

        Nevermind.
        Electron seems to be able to control its cache automatically.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy