목록에서 본문 이미지 엑박일 때 섬네일 계속 생성 시도 해결#2088
Merged
1 commit merged intoJun 26, 2017
Merged
Conversation
This pull request was closed.
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.
재현방법
2-1. $this->get('content')값을 못가져 오는 상황에서
새로운 크기의 섬네일 요청
2-2. 글 작성 시 섬네일 생성 오류 또는 직접 섬네일 폴더를 지웠을 경우
(섬네일 생성 크기를 자주 바꿔서 용량 확보를 위해 사용하지 않는 섬네일 삭제,
이미지 순서 변경으로 새로 생성하고 싶을 때 폴더를 통째로 삭제하는 경우가 있음)
원인
본문 가져오기 쿼리가 실행되고 (요약 없는 일반적인 상황)
$output = executeQuery('document.getDocument', $args, array('content'));
아래쪽에서 $output을 위 쿼리 결과를 참조함.
xe와 라이믹스 모두 해당.
위와 별개로 큰 문제는 아니지만
섬네일 생성과정이 섬네일은 한번만 생성해놓으면 되는데,
섬네일이 있든 없든 매번 getDocument 쿼리를 20번씩 목록에서 실행하는 것은 비효율적인 것 같음.