Skip to content

Caching and Storage

Wallpaper Server keeps your original images where they are and maintains a separate on-disk cache for fast serving.

LocationDefaultContents
Source foldersyour wallpaper_foldersYour original images — never modified.
Cache directory~/.cache/wallpaper-serverCached copies and thumbnails.
Uploads directory~/.local/share/wallpaper-server/uploadsImages added via the API or gallery.

These paths are configurable (configuration reference) and follow XDG conventions. ~ is expanded, and the directories are created automatically (mode 0755) if missing.

  • Cached copies: each source image is copied into the cache directory. The copy is reused unless the source file is newer (compared by modification time), in which case it is regenerated.
  • Thumbnails: stored under thumbnails/ in the cache directory as JPEGs (max 300×200), regenerated when the source is newer.

The cache is rebuilt by POST /api/refresh, which rescans folders and swaps in a freshly built index atomically — the server never serves from an empty or half-built index during a refresh.

Uploaded images are written to the uploads directory with a generated filename, then analysed and indexed immediately. They become first-class wallpapers, indistinguishable from images in your source folders.