Skip to main content
anthonyr17254608
Participant
September 24, 2018
Answered

Manually Delete Extension Cache with Script

  • September 24, 2018
  • 1 reply
  • 2129 views

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!

This topic has been closed for replies.
Correct answer JJMack

So you can develop the full file path and remove the file if its not in use and locked

1 reply

JJMack
Community Expert
Community Expert
September 25, 2018

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.

JJMack
anthonyr17254608
Participant
September 25, 2018

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.

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
September 25, 2018

So you can develop the full file path and remove the file if its not in use and locked

JJMack