ID 352167 - Hydra textures are not unloaded/reloaded when running 'Flush Caches' command

Follow

Problem summary
Textures used in Hydra shaders are not cleared or reloaded from disk when running the 'Flush Caches' command. 

The OSG viewer does not have this issue (the textures are unloaded/reloaded when flushing cache).

Customer reported version
3.0__3.0v1

Customer reported platform
centos7

Steps to reproduce

1) Create the following node graph: 

- PonyCreate -> Material -> MaterialAssign -> GafferThree

2) Assign a Hydra viewer material with support for textures: 

- In Material node, click Add Shader button and choose hydra surface. in hydraSurfaceShader, select katana_surface. Then in the drop-down, add the "foundrylogo.png" to diffuseTexture.

- In MaterialAssign Node, add /root/world/geo/pony1 as a CEL Path. Then assign the material in materialAssign.

3) Add a Hydra light source:

- In GafferThree Node, add a regular light. Under Material tab click Add Shader and click hydra light. In hydraLightShader, select katana_distant.

4) View the pony, edit the file texture on disk, and flush the caches

- Expand all the Scene Graph

- Edit the "F-dot_RGB_black-yellow-white-01.png" texture or whichever texture file that was assigned (e.g. with Paint, GIMP, or similar) and save
- Flush the caches 
 

The texture does not change in the viewport.

Workaround
The only workaround found was to restart Katana.

Assigning a different material then reassigning the material did not update the texture. 

Assigning a different texture file then reassigning the edited texture file did not update the texture. 

Re-opening the project without restarting Katana does not update the texture. 

Reproduced by support
This bug has been reproduced in:

Reproduced in Katana 3.0v1 on Windows 10 and Centos7

Earliest version tested
Katana 3.0v1. Earlier versions of Katana excluded since the Hydra viewer was introduced in 3.0v1.

Expected behaviour
The textures loaded from Hydra shaders to be unloaded (and potentially reloaded if necessary, e.g. location with shader is active and visible).

Actual behaviour
Textures are not unloaded (and not reloaded)

    We're sorry to hear that

    Please tell us why