Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Manually Delete Extension Cache with Script

New Here ,
Sep 24, 2018 Sep 24, 2018

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!

TOPICS
Actions and scripting
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 25, 2018 Sep 25, 2018

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

Translate
Adobe
Community Expert ,
Sep 25, 2018 Sep 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 25, 2018 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 25, 2018 Sep 25, 2018

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

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 25, 2018 Sep 25, 2018
LATEST

So sounds like it's indeed the manual way then, and no API way of managing the cache then

Alrighty, thanks for your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines