• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by jsmits062 · Jan 04, 2016 at 07:52 PM · assetbundlemobile devicescachemobileoptimizationcaching

IOS/Android AssetBundle Cache Cleanup

Hi All,

I have a question about asset bundle cache cleanup on mobile devices. Our app has been live for a while and the size of the app has been growing since launch (on my IOS device under settings->general->usage->manage storage it now shows as 1.7GB - initial install + content is around 400mb). We have content releases so completely new asset bundles (as well as new versions of existing asset bundles) are being downloaded frequently. I have looked through the Caching. Api and have experimented with setting different values for Caching.maximumAvailableDiskSpace and Caching.expirationDelay in the hopes that I can trigger a cleanup for old "unused" asset bundles. Unfortunately setting maximumAvailableDiskSpace to something like 500MB and/or Caching.expirationDelay to something low like 1 second (for testing) doesn't seem to have any impact.

After experimenting with the caching api I am now even more unclear on its intended use so my question is:

"What is the Unity best practice for maintaining asset bundle cache size on mobile devices and what api should I be using for the implementation"?

Thanks!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

39 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Cache Server 5.4.0 crashes 2 Answers

How can I cache an Addressable without loading it? 0 Answers

[WebGL] .data.unityweb is not cached in Desktop Safari 0 Answers

Caching videos vs streaming them on mobile? 0 Answers

How do I decrease VRAM usage? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges