Highlighted

how to purge all from javascript?

Explorer ,
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

290

Likes

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

how to purge all from javascript?

Explorer ,
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

291

Likes

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
Explorer ,
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.

Likes

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
Reply
Loading...
Explorer ,
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.

Likes

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
Reply
Loading...
Greg1987 LATEST
Explorer ,
Jun 05, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...