[#381] 웹페이지 썸네일 저장 위치를 수정하여 썸네일이 재 fetch되는 현상을 해결한다#389
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
이번 PR은 웹 페이지 이미지 캐시 관리를 위한 WebPageImageStore를 도입하고, 관련 로직을 유스케이스로 분리하여 WebPageMetadataService와 SettingViewModel을 리팩토링했습니다. 리뷰 결과, 긴 URL 대응을 위한 파일명 해싱 처리, 빈번한 디렉토리 스캔으로 인한 성능 저하 개선, iCloud 백업 제외 설정 추가, 그리고 메인 스레드 차단을 방지하기 위한 비동기 처리 또는 상태 구독 방식 도입이 필요합니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 연관된 이슈
📝 작업 내용
📌 요약
Application Support/webPageImages로 정리했습니다.WebPageImageStore로 분리했습니다.Repository -> UseCase -> SettingViewModel경로로 연결했습니다.WebPageMetadataService가 직접 처리하던 파일 저장/삭제를WebPageImageStore에 위임했습니다.🔍 상세
WebPageImageStore추가WebPageImageRepository추가FetchWebPageImageDirSizeUseCaseClearWebPageImageDirectoryUseCaseSettingViewModel수정WebPageMetadataService수정WebPageImageStore를 통한 저장/삭제로 정리WebPageImageStore개선webPageImages디렉터리에 백업 제외 속성 설정observeDirSize()제거PersistenceAssemblerDataAssemblerDomainAssemblerInfraAssembler📸 영상 / 이미지 (Optional)