1

anyone can explain what's the different between drop cache with this code : echo 3 > /proc/sys/vm/drop_caches and the classic "Clear cache" button in the app information? Thanks

Atlas91
  • 5,754
  • 17
  • 69
  • 141

1 Answers1

1

The only thing that is the same is the existence of the word "cache" in each.

drop_caches refers to Linux kernel page caching, near as I can tell. It is certainly well outside the bounds of what anyone with any sense would mess with in an Android app.

"Clear Cache" refers to files stored in per-application cache directories (getCacheDir() and getExternalCacheDir()).

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491