2

I’ve got a simple question

I made an application similar to instagram, the only difference is that it has more stories&posts because there’s no following system.

I do cache the images and videos, but should I delete the caches with a timer?

It is lots of videos and images.


Or is it enough to cache and when terminating the app clear the caches

Kárpáti András
  • 1,031
  • 1
  • 13
  • 31
  • its depends on your requirement Instagram has its own cache library for storing and managing the content for different users , if more then one user login into the app without terminating the app then what you doing at the moment ? – nivritgupta Aug 23 '18 at 14:49

1 Answers1

2

If you're using standard caching mechanisms like NSCache, the OS will automatically clean it when it needs more memory for other applications. You don't need to worry about cleaning cache manually, unless you need some app specific behaviour.

inokey
  • 3,243
  • 3
  • 18
  • 28