I am looking for a way to not clear the local cache of select folders. For example, I do not want the my Company Templates folder cleared whenever a I choose to clear the vault's local cache. Is there a way to do this in EPDM or is there an API for this?
The EPDM API command IEdmClearLocalCache will allow you to clear the local cache of folders and/or files.
There is a nice example in the help file showing you how to add folders to the selection of folders to clear. Perhaps you recursivly go through all folders in the vault (except the ones you don't want cleared.) and add them to their list.
Also look at this thread https://forum.solidworks.com/thread/36562