Skip to content

Commit

Permalink
fix(server): disable sharp file caching (#6542)
Browse files Browse the repository at this point in the history
don't cache files
  • Loading branch information
mertalev authored Jan 21, 2024
1 parent 4d41701 commit 311261b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/infra/repositories/media.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { promisify } from 'util';

const probe = promisify<string, FfprobeData>(ffmpeg.ffprobe);
sharp.concurrency(0);
sharp.cache({ files: 0 });

export class MediaRepository implements IMediaRepository {
private logger = new ImmichLogger(MediaRepository.name);
Expand Down

0 comments on commit 311261b

Please sign in to comment.