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

how to purge all from javascript?

Explorer ,
Jun 05, 2020 Jun 05, 2020

Copy link to clipboard

Copied

Hi,

I tested this line alone in a single script with nothing else. When I go to check it out, to Edit/Purge/All Memory & Disk Cache I can still see it full of cached files.

Is this the correct syntax? Anything else that I should do to effectively clear all?

Please, let me know.

 

app.purge(PurgeTarget.ALL_CACHES);

 

 

I should add that I tried this way too, still with no luck:

app.findMenuCommandId("All Memory & Disk Cache...")

 

Thank you,

A.

TOPICS
How to , Scripting

Views

968

Translate

Translate

Report

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
Explorer ,
Jun 05, 2020 Jun 05, 2020

Copy link to clipboard

Copied

app.purge(PurgeTarget.ALL_CACHES);

Just tried it and it worked for me. I tested it with a project that takes a little while to render and can see the preview disappear and re-render.

Votes

Translate

Translate

Report

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
Explorer ,
Jun 05, 2020 Jun 05, 2020

Copy link to clipboard

Copied

I can see that too, but when you go to Edit/Purge/All Memory & Disk Cache do you see anything still cached? The command would suppose to clear all physical data...no? Btw, I am on Mac 10.15.5,  AE 17.1x72.

Votes

Translate

Translate

Report

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
Explorer ,
Jun 05, 2020 Jun 05, 2020

Copy link to clipboard

Copied

LATEST

Huh yeah I still have 500mb of cache after running it but 0mb if I run it via the menu.

 

Windows 10, AE 17.1 build 72

Votes

Translate

Translate

Report

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