MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    How to clear cache?

    Scheduled Pinned Locked Moved Development
    2 Posts 1 Posters 2.6k Views 1 Watching
    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.
    • ? Offline
      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
      • ? Offline
        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 Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy