Skip to main content
Inspiring
June 5, 2020
Question

how to purge all from javascript?

  • June 5, 2020
  • 1 reply
  • 1410 views

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.

This topic has been closed for replies.

1 reply

Inspiring
June 5, 2020
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.

AltaRDAuthor
Inspiring
June 6, 2020

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.

Inspiring
June 6, 2020

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