playMaker

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

PleaseHelpMe

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
Action for AssetBundle's Cache.ClearCache?[SOLVED]
« on: August 30, 2018, 01: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 09, 2018, 10:54:34 PM by jeanfabre »

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: Action for AssetBundle's Cache.ClearCache?
« Reply #1 on: September 08, 2018, 01: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, 01:38:16 PM by PlaymakerNOOB »

tcmeric

  • Hero Member
  • *****
  • Posts: 666
    • View Profile
Re: Action for AssetBundle's Cache.ClearCache?
« Reply #2 on: September 08, 2018, 10:15:02 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.

PleaseHelpMe

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
Re: Action for AssetBundle's Cache.ClearCache?
« Reply #3 on: September 09, 2018, 07: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!