Caching and Storage
Wallpaper Server keeps your original images where they are and maintains a separate on-disk cache for fast serving.
What is stored where
Section titled “What is stored where”| Location | Default | Contents |
|---|---|---|
| Source folders | your wallpaper_folders | Your original images — never modified. |
| Cache directory | ~/.cache/wallpaper-server | Cached copies and thumbnails. |
| Uploads directory | ~/.local/share/wallpaper-server/uploads | Images 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.
The cache
Section titled “The cache”- 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.
Uploads
Section titled “Uploads”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.