Page 1 of 1

Icon problem on web console

Published: February 8, 2018 - 3:53 PM
by Floflobel
Hello,

I'm having a problem with the icons on the web interface of the workstations (localhost:8088).

I created a package with an icon located in the "WAPT" folder. This icon displays correctly on the web interface, but it remains cached.
I generated a new version of the package with a new icon, but this one isn't displayed; the old one is still there.

I tried deleting the cache in the installation folder, clearing my browser cache, and restarting, but nothing works; the first icon doesn't move.

Sincerely,

Re: Icon problem on web console

Published: March 2, 2018 - 7:08 PM
by dcardon
Hello Floflobel,
Floflobel wrote: Feb 8, 2018 - 3:53 PM I'm having a problem with the icons on the web interface of the workstations (localhost:8088).

I create a package with an icon located in the "WAPT" folder. This icon displays correctly on the web interface, but it remains cached.
I generate a new version of the package with a new icon, and this one isn't displayed; the old one is still there.

I've tried deleting the cache located in the installation folder, clearing my browser cache, and restarting, but nothing works; the first icon doesn't move.
After reviewing the code, it appears there's a two-level caching issue. The first is at the server level, with the wapt-scanpackage.py function that extracts the icons into the /wapt/icons directory. The second is at the waptservice.py level on the user's machine, which retrieves the icon from the server and caches it locally.

So to temporarily solve your problem, you can delete the contents of the /var/www/wapt/icons/* directory and then run wapt-scanpackage.py again, and flush the local cache on the machine as you had already done.

Sincerely,

Denis