how do I clear the cache of the game cause nothing works

0 favourites
  • 2 posts
From the Asset Store
Basics sprites and tilesets to build a platformer game or prototype
  • Hi

    so I have added on start of layout the clear localstorage

    but when I have the game online and I update to a new version, the users see the old version unless they go to the game again (they have already played it) or click on shift R

    I looked in the console and it shows that there is a cache storage folder - how do I clean that so that it will show the latest ver?

    thank you

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Construct has a system in place that updates the game if there's a new version. You circumvent this system by editing the exported project rather than exporting a new one.

    It's a shot in the wild and I haven't tested it but I do think it's possible to trigger this update system by simply editing offline.json (along with whatever other changes you made) and increasing the version number by one, then reloading twice. (First reload triggers the update that happens in the background, second reload then applies it)

    The functionality for this is a little bit hidden inside the Browser plugin.

    https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/browser#internalH1Link1

    https://www.construct.net/en/tutorials/offline-games-construct-8

    You can refer to this.

    https://www.construct.net/en/forum/construct-3/how-do-i-8/clear-cache-startup-168542

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)