Skip to content

목록에서 본문 이미지 엑박일 때 섬네일 계속 생성 시도 해결#2088

Merged
1 commit merged into
xpressengine:developfrom
sunmikr:fix-gettmb
Jun 26, 2017
Merged

목록에서 본문 이미지 엑박일 때 섬네일 계속 생성 시도 해결#2088
1 commit merged into
xpressengine:developfrom
sunmikr:fix-gettmb

Conversation

@sunmikr

@sunmikr sunmikr commented May 15, 2017

Copy link
Copy Markdown
Contributor

재현방법

  1. 게시판 목록설정에 요약이 없는 상황 (xe 기본값)

2-1. $this->get('content')값을 못가져 오는 상황에서
새로운 크기의 섬네일 요청

2-2. 글 작성 시 섬네일 생성 오류 또는 직접 섬네일 폴더를 지웠을 경우

(섬네일 생성 크기를 자주 바꿔서 용량 확보를 위해 사용하지 않는 섬네일 삭제,
이미지 순서 변경으로 새로 생성하고 싶을 때 폴더를 통째로 삭제하는 경우가 있음)

  1. 엑박이지만 thumbnailExists() true로 반환되고 빈섬네일 파일 생성안 됨.

원인

본문 가져오기 쿼리가 실행되고 (요약 없는 일반적인 상황)
$output = executeQuery('document.getDocument', $args, array('content'));

아래쪽에서 $output을 위 쿼리 결과를 참조함.
xe와 라이믹스 모두 해당.

위와 별개로 큰 문제는 아니지만
섬네일 생성과정이 섬네일은 한번만 생성해놓으면 되는데,
섬네일이 있든 없든 매번 getDocument 쿼리를 20번씩 목록에서 실행하는 것은 비효율적인 것 같음.

@ghost ghost self-assigned this Jun 8, 2017
@ghost ghost added the type/enhancement label Jun 12, 2017
@ghost ghost added this to the 1.8-2017-26W milestone Jun 12, 2017
@ghost ghost added the type/bug label Jun 26, 2017
@ghost ghost merged commit 3a3c34b into xpressengine:develop Jun 26, 2017
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant