nextcloud / nextcloud/ios

Feature request: Deleting cached photos without deleting thumbnails

Open
#2,260 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

When I browse through the photos, each one is loaded into cache. If I look through, for example, an album of 1,000 photos, each one stays in the cache, and that takes up about 3 gigabytes of space on the device. The only way to free this space is to clear the cache, but along with downloaded photos all the photo previews are also deleted at the same time, all the information about folders, paths needs to be re-synchronized, and it's rather inconvenient. Especially when you have to scroll through all of them to load the previews.
It would be nice to have a feature to manual and auto delete only downloaded photos without everything else.

Alternatively - take the Google Photos path. If I'm not mistaken, it doesn't download full size photos at all, only if you try to share the photo or save it in the gallery.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the iOS photo cache and existing clear-cache flow; the issue names no files or tests. Define the manual and automatic deletion behavior while preserving thumbnails and folder/path metadata, then add coverage for those behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile-dev, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.