Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • johnsmithweb 9 posts 30 karma points
    Jul 07, 2022 @ 19:19
    johnsmithweb
    0

    Clearing dashboard cache

    I'm trying Umbraco 9 and decided to do a custom dashboard. I followed the tutorials okay and now would like to see some of my changes come through but my initial javascript is cached (like concrete). It survives stopping and restarting the App pool in IIS, trying to clear all caches using the Chrome Dev tools, a republish of the site from Visual Studio with deleting files before publish and a PC restart. The stuff I've read says you need to increase the Client Dependency version in the config file but I can't find that in Umbraco 9. So the question is how do I clear the javascript file shown in the 'sb' folder in the screenshot below?

    enter image description here

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Jul 07, 2022 @ 19:27
  • johnsmithweb 9 posts 30 karma points
    Jul 07, 2022 @ 21:57
    johnsmithweb
    0

    Hi Huw, I tired setting UseInMemoryCache to false and set CacheBuster to AppDomain in my appsettings.Development.json file in my publish folder and then did an AppPool (and site) stop and then start. Same result - cached file still present.

  • AWatters 33 posts 174 karma points
    Jul 07, 2022 @ 20:33
    AWatters
    0

    Could you try deleting the contents of the Smidge/Cache folder and then restarting the site?

  • johnsmithweb 9 posts 30 karma points
    Jul 07, 2022 @ 22:03
    johnsmithweb
    0

    Hi, The Smidge/Cache folder only contained an empty folder named the same as my laptop. Nevertheless, I deleted the empty folder and did a site restart and the cached file is still present.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Jul 08, 2022 @ 09:26
    Huw Reddick
    1

    Try loading the dashboard url directly in your browser and then doing a hard refresh of that url

    /app_plugins/yourpluginfolder/yourdashboard.html

    I have done this in the past when the backoffice didn't refresh its files correctly

  • john-at-digirati 1 post 21 karma points
    Jul 08, 2022 @ 18:24
    john-at-digirati
    0

    Hi Huw, Thanks for the suggestions. I tried doing a hard refresh of my dashboard url directly and the cached js file is still present. Other things I tried - doing a search from the root of my C: drive for the file umbraco-backoffice-extensions-js.js* (the apparent name of the file shown in Dev Tools) - didn't find any. Did a search from the root of my C: drive for folders named smidge - found two (in my bin/debug/../publish folder and bin/release/../publish folder) but both empty. Thinking of making nuclear blast bunkers with this as its indestructible :-)

  • johnsmithweb 9 posts 30 karma points
    Jul 08, 2022 @ 18:57
    johnsmithweb
    1

    Hah, Finally found a solution, or at least a workaround. In the _ViewImports.cshtml file, I commented out both lines:

    @addTagHelper *, Smidge
    @inject Smidge.SmidgeHelper SmidgeHelper
    

    That did the job and saved my sanity.

Please Sign in or register to post replies

Write your reply to:

Draft