3 Replies Latest reply on Feb 8, 2019 5:55 AM by Till Keyling

    VizQL process cache

    Jean Wang

      I need to clear the rest api image cache. However, I do not want to reset vizportal.rest_api.view_image.max_age.

      Is there anyway I can download the latest image without changing the settings? I'm working in python in linux, so preferably a method compatible.

       

      Thanks

        • 1. Re: VizQL process cache
          Nate Bean

          I haven't found a solution to this for python...if you have access to the computer running Tableau Server, it looks like you are able to clear the cache using a tabadmin or redis command (see link for more). tabadmin requires server outages...not sure if the redis route would.

           

          https://www.theinformationlab.co.uk/2015/10/16/how-to-clear-your-tableau-server-cache/

           

          I'm still testing out the image endpoint, so I've worked around image caching by duplicating the views on tableau server and pinging the server for the duplicate views...not sure if your application is more mature.

          • 2. Re: VizQL process cache
            Jean Wang

            I read that the vizportal cache is not the same one as the server cache. Not sure if that's true.

            Since I need the cached image soon after updating the source. Would changing vizportal.rest_api.view_image.max_age to 5 minutes be loading the image too frequently? I'm worried about slowing down the server

            • 3. Re: VizQL process cache
              Till Keyling

              Is there any update yet? On Tableau Server (Windows, 10.5), setting the above mentioned parameter to 0 or 1 doesn't seem  to have an effect, as the image generated via the Rest API endpoint does not reflect any changes in the live data connection (while the Dashboard web view is updated), thus it still seems to be cached.

               

              Is there any option or response parameter to check the status/date of the image cache?