Skip to main content

Why Is My Disk Usage So High?

Updated this week

FlyingPress stores optimized static files to improve performance. Over time, especially on high-traffic or content-heavy sites, these files can accumulate and use significant disk space.

Where Are Files Stored?

All cached and optimized assets are stored in:

/wp-content/cache/flying-press/

This includes subfolders for each cached page, along with minified assets, font files, and metadata.

What Files Are Stored?

Extension

Purpose

.html.gz

Cached HTML (gzip), including variants for mobile, user roles, query strings.

.json.gz

Optimization metadata (used CSS, fonts, exclusions)

.css, .js

Minified styles and scripts

google-font.css

Self-hosted Google Fonts CSS

.woff2, .woff, .ttf

Self-hosted Google Fonts files

.jpg

YouTube thumbnails (self-hosted)

.png

Gravatar images (self-hosted)

Estimating Cache Folder Size

Assuming:

  • One .html.gz file ≈ 120 KB

  • One .json.gz ≈ 80 KB

  • Optional CSS/JS/Fonts/images ≈ variable

Cache size estimates (minimum per page):

Pages

Estimated Size (HTML + metadata)

1,000

~200 MB

10,000

~2 GB

100,000

~20 GB

1,000,000

~200 GB

Actual usage may be higher depending on how many variants are cached per page and whether font/image self-hosting is enabled.

How to Analyze Disk Usage

Size & count by file type

find ./wp-content/cache/flying-press/ -type f | while read -r file; do ext="${file##*.}"; size=$(du -k "$file" | cut -f1); echo "$size $ext"; done | awk '{s[$2]+=$1; c[$2]++} END {for (e in s) printf "%.2f MB\t%5d files\t%s\n", s[e]/1024, c[e], e}' | sort -hr

Top folders by size

du -h ./wp-content/cache/flying-press/ | sort -hr | head -n 20

Largest files

find ./wp-content/cache/flying-press/ -type f -exec du -h {} + | sort -hr | head -n 20

Tips to Reduce Usage

  • Exclude pages like tags, categories, or search results from caching.

  • Disable unused features (Google Fonts, YouTube thumbnail, Gravatar self-hosting).

  • Disable caching for logged-in users unless necessary.

  • Avoid caching URLs with dynamic query strings unless required.

Clear Cached Files

FlyingPress does not automatically purge cached static files (except for HTML pages and their associated optimizations).

To clear everything manually: Go to FlyingPress → Settings → Purge Everything

This will remove all cached HTML, CSS, JS, fonts, and optimization metadata.

Did this answer your question?