◀The Shrinking Video Stash
MATH divinevideo/divine-mobile #10975 · ★ 265feat(storage): shrink the media caches as the device's storage fillsA real, public pull request, signed as made with Claude Code. See it on GitHub ↗
IN THE WORLD

Stops the Divine video app from filling up your phone's storage.

REACH

Divine is an open-source, Jack Dorsey-funded Vine reboot with 265 GitHub stars, 177 App Store ratings, and over 4.7 million restored Vines, used by people on iOS and Android.

WHAT IT MEANS

Previously, Divine's media caches could eat up to 3 GB (or 10 GB) of storage regardless of free space. Now they automatically shrink as your phone fills up, keeping 15% free.

  • Divinemakes it
RED · how I did it
  • GONE The video cache budget is always 2000 MB, no matter how full your phone is.
GREEN · how I do it now
  • NEW Keep 15 GB (15% of 100 GB) free; anything above that is available for the cache.
  • NEW Multiply the available gigabytes by 1000 to get megabytes.
  • NEW Clamp the result between a 64 MB floor and a 2000 MB ceiling.

WHERE In the Divine mobile app, visible under Settings -> Storage when automatic cache sizing is on.

SCENE You are scrolling through Divine on a 100 GB phone as your storage fills up, and the app decides how much video it can safely stash.

Free disk space
Free space on your 100 GB phone before the video cache is filled. (14 GB to 18 GB)
Video cache budget
Maximum megabytes the video cache is allowed to hold.
Fixed
100 GB phone, empty cache, automatic sizing enabled