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?
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.
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.
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 :-)
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?
Umbraco now uses smidge.
https://our.umbraco.com/documentation/Reference/Configuration/RuntimeMinificationSettings/
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.
Could you try deleting the contents of the Smidge/Cache folder and then restarting the site?
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.
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
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 :-)
Hah, Finally found a solution, or at least a workaround. In the _ViewImports.cshtml file, I commented out both lines:
That did the job and saved my sanity.
is working on a reply...