Skip to content

Feature: Show Tile Cache size in menu#29

Merged
hgosalia merged 1 commit into
mainfrom
feature/cache-stats
Jun 28, 2026
Merged

Feature: Show Tile Cache size in menu#29
hgosalia merged 1 commit into
mainfrom
feature/cache-stats

Conversation

@hgosalia

@hgosalia hgosalia commented Jun 28, 2026

Copy link
Copy Markdown
Member
image

@github-actions

Copy link
Copy Markdown

📋 PR Summary

Title: Feature: Show Tile Cache size in menu
4 files changed: +43 additions, -9 deletions

Description

This PR introduces a new feature that displays the size of the tile cache in the application settings menu. It adds a call to the /api/tiles/size endpoint, which calculates and returns the current size of the tile cache in bytes, along with the maximum allowed size. The settings menu is updated to show this information when opened and refreshes the displayed size after the cache is cleared, enhancing the user's awareness of storage usage. Additionally, the documentation for data storage has been updated to reflect changes in how image data and metadata are managed.

Files

  • docs/data-storage.md — Updated (+12/-8)
  • index.html — +1/-1
  • js/data.js — New: updateCacheSizeStatus. Modified: toggleSettingsMenu, emptyTileCache
  • serve.py — New: _tile_cache_size. Modified: do_GET, _video_abort

@hgosalia hgosalia merged commit 072b901 into main Jun 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant