Performance: GZip, Cache-Control, WebP, SQLite-Tuning, Indizes, srcset — SW by-v438, APP_VER 417
This commit is contained in:
parent
5bd07d9598
commit
e0c2b2bdc1
10 changed files with 46 additions and 12 deletions
|
|
@ -829,7 +829,7 @@ async def generate_media_previews(user=Depends(require_admin)):
|
|||
base, ext = os.path.splitext(fname)
|
||||
if ext.lower() not in _PREVIEW_EXTS:
|
||||
continue
|
||||
preview_path = os.path.join(folder, base + "_preview.jpg")
|
||||
preview_path = os.path.join(folder, base + "_preview.webp")
|
||||
if os.path.exists(preview_path):
|
||||
skipped += 1
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue