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.

    MMM-IMagesPhotos - setting up caching

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 2 Posters 199 Views 2 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.
    • N Offline
      Nneuland
      last edited by

      Hi all,

      I’m a noob, but love a challenge. I’m looking to cache my images for MMM_IMAGESPHOTOS for smoother loading. The DevTool network tab is showing that roughly half of the images are caching at first. Then after some time passes, is appears that the images aren’t caching at all. I’m not sure how to troubleshoot. All of the images are jpg and coming from the same folder.

      Happy to provide any other information to sort this out. Looking forward to figuring this out.
      Thanks so much.

      -Nick

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @Nneuland
        last edited by sdetweil

        @Nneuland

        You can increase the cache size

        In config.js
        I am in car, will find in code

        Above the modukes:[] list

        electronSwitches : {. Switch_name:value, … },

        IMG_1969.png

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Nneuland
          last edited by

          @Nneuland note I updated the prior post

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            Nneuland @sdetweil
            last edited by

            @sdetweil Thank you for the reply Sam.

            This change is happening in MagicMirror/js/electron.js, or config.js?

            I appreciate your time.

            -Nick

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Nneuland
              last edited by

              @Nneuland config.js,

              ALL config goes in config.js
              Always

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                Nneuland @sdetweil
                last edited by Nneuland

                @sdetweil

                Would you be able to share the full code? Even a snippet of config so it’s more clear where the full cache code is? I don’t see any documentation on this.

                -N

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Nneuland
                  last edited by

                  @Nneuland I posted the property model and the switch name
                  I think you can cut/paste

                  I don’t know what cache value is helpful

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  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