Copy link to clipboard
Copied
Hi!
I'm trying to manually delete my extension's entire cache via script. Does the CEP API, or some other less straightforward method, offer a way to clear my extension's cache? This would be used with the current version of Photoshop.
Or is the only way to do this to have my script find and navigate to the extension's folder and delete cache files one-by-one in a recursive loop-type setup?
Permanently disabling the extension cache isn't an option, as I need to be able to do this action selectively and do want to use the cache as a core part of the extension's functionality.
(I've done some serious searching and googling, and still can't find an answer to this question yet, so apologies if I missed it from elsewhere.)
Thanks for your time!
1 Correct answer
So you can develop the full file path and remove the file if its not in use and locked
Explore related tutorials & articles
Copy link to clipboard
Copied
Does your extension have its own cache. I see only one CEP cache file for my user id and the data in there seems to be for many extensions not just one.
Copy link to clipboard
Copied
Yes, I found the cache located in: C:\Users\{UserName}\AppData\Local\Temp\cep_cache\com.company.myextension
This is storing authentication cookies that I'd like to be able to delete in response to a specific user action (a logout button).
When I delete these files, it successfully "logs out" the user.
Copy link to clipboard
Copied
So you can develop the full file path and remove the file if its not in use and locked
Copy link to clipboard
Copied
So sounds like it's indeed the manual way then, and no API way of managing the cache then
Alrighty, thanks for your help!

