playMaker

Author Topic: Action for AssetBundle's Cache.ClearCache?[SOLVED]  (Read 2478 times)

PleaseHelpMe

  • Playmaker Newbie
  • *
  • Posts: 20
Action for AssetBundle's Cache.ClearCache?[SOLVED]
« on: August 30, 2018, 04:51:23 AM »
Hello, I am looking for an action for AssetBundles Cache.ClearCache https://docs.unity3d.com/ScriptReference/Cache.ClearCache.html.

I want the AssetBundle cache to be cleared immediately on action so a new AssetBundle can be downloaded in it's place.

I have taken a look at the additional AB actions here https://github.com/dumbgamedev/playmaker_assetbundle and it does not contain any way to remove AssetBundles from cache. Only to keep incrementing the version which means that all previous versions are kept for "150" days by default https://docs.unity3d.com/ScriptReference/Cache-expirationDelay.html. Thus, increasing storage space for unused cache from previous versions.
« Last Edit: September 10, 2018, 01:54:34 AM by jeanfabre »

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Re: Action for AssetBundle's Cache.ClearCache?
« Reply #1 on: September 08, 2018, 04:35:50 PM »
The playmaker ecosystem has a few other AssetBundle actions.  But it does not appear to have the actions you are needing.  Perhaps put in a request for it in the action request section?
« Last Edit: September 08, 2018, 04:38:16 PM by PlaymakerNOOB »

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Action for AssetBundle's Cache.ClearCache?
« Reply #2 on: September 09, 2018, 01:15:02 AM »
Here you be. Ive added an action to clear cache or set a delay to clear cache. Action called "clear cache".

You can find it here: https://github.com/dumbgamedev/playmaker_assetbundle

Tested on unity 2017 and above.

PleaseHelpMe

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Action for AssetBundle's Cache.ClearCache?
« Reply #3 on: September 09, 2018, 10:37:03 PM »
Here you be. Ive added an action to clear cache or set a delay to clear cache. Action called "clear cache".

You can find it here: https://github.com/dumbgamedev/playmaker_assetbundle

Tested on unity 2017 and above.

Awesome! Worked perfectly. Thank you very much!