7 Replies Latest reply on Oct 12, 2011 5:17 PM by Wayne Matus

    Local cache automatically cleared

    Dan Schleicher

      Is there a way to set up viewers, so when they either logoff or shutdown their computer to automatically clear their cache.

        • Re: Local cache automatically cleared
          Wayne Matus

          Check out this thread.

           

          https://forum.solidworks.com/message/124107#124107

           

          You might be able to run on start up.

            • Re: Local cache automatically cleared
              Dan Schleicher

              Wayne,

                         It looks like it may work. Thank you. I will work on it tomorrow.

              • Re: Local cache automatically cleared
                Jason Capriotti

                This looks like it clears cache for the entire vault or even a folder in the vault. Is there a way to clear all "CVD" files only? We are using CVD virtual files for the ECO. Problem we're running into is as the ECO.cvd moves through the workflow and people change it, people end up with an older version cached. Even though we have "Always work with latest" on, it still shows information in the datacard pertaining to the cache version (bug???).

                 

                Anyway, didn't know if they was a way to filter the clear cache by filetype. And have to figure a way to have it run more frequently than on just login. Need to run it on selection of the CVD file maybe.

                  • Re: Local cache automatically cleared
                    Wayne Matus

                    Yes, it could be filtered by files, but you would have to tell it each individual file to clear. You could have the API search for all .cvd files and add them to the list of files to clear.

                      • Re: Local cache automatically cleared
                        Christina Seay

                        We've got ours set up using Dispatch so that it just clears the file from the local cache when it's checked in.  Not quite a brute force attack at sign-on/off... but it keeps the local cache clear steadily as they check it in and makes sure that they still have it on their computer if they 'forget' to check it in before going home.

                        • Re: Local cache automatically cleared
                          Jason Capriotti

                          Is there a way to trigger it when a user selects a file or a particular data card loads? Not sure if it would be good for performance though.

                           

                          I call this a bug but when you have the setting to "always work with latest", it should always show you the latest data card information (It does if you have no version cached). It doesn't, it shows you the local cached version, then when you open the file, it gives you the latest. Of course CVD files can't be opened because they aren't a file....therefore we get the cached file problem of not seeing the latest information. The users are having a hard time understanding this since they are used to viewing this information from an Acess DB and it didn't have this problem. And the warning icon that you don't have teh latest is not all that visible.....should be in your face.

                           

                          We could clear the cache once a day with a scheduler but an ECO can move through the workflow states several times during a day. We really need a way to clear the cache when a user selects it to view it.