Skip to content

모듈 클래스 불러올때 언어파일은 불러오지 않았으면 합니다. #10

@khongchi

Description

@khongchi

https://code.google.com/p/xe-core/issues/detail?id=918

Reported by sinsy...@gmail.com, Nov 7, 2011
class중에 ModuleHandler.class.php파일 내 getModuleInstance를 보니 View를 불러오던 Controller를 불러오건, Model을 불러오건 해당 모듈의 class를 불러오면 언어파일을 로드하는군요.. Controller나 Model같은 경우 언어파일은 필요 없는 경우가 많습니다. 예를 들어 세션 모듈의 언어파일은 관리자페이지 외에선 거의 쓸일이 없습니다.
512번째 줄 Context::loadLang($class_path.'lang'); 부분을 기본적으론 불러오지 않게 했으면 좋겠습니다. 여러 모듈을 혼합해 사용하는 모듈들이 많은데(기본으로 불러오는 모듈만 해도 애드온모듈, 세션모듈, 모듈모듈, 서비스모듈 하나. 이렇게 되지요. 이중에 애드온 모듈과 세션모듈의 언어파일은 불러오지 않아도 관리자 외엔 무방합니다.) 사용하지 않는 언어파일로 메모리 점유율이 높아지지 않겠습니까?..(물론, 그리 크지 않다.. 라고 하실 수 있지만, 티끌 모아 태산이지요;; ㅠㅋ)
가벼운 XE를 만들어 보아요;

http://xe.xpressengine.net/index.php?mid=issuetracker&act=dispIssuetrackerViewIssue&page=23&document_srl=19349595

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions