-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
모듈 클래스 불러올때 언어파일은 불러오지 않았으면 합니다. #10
Comments
현재로써는 득보다 실이 더 클 것 같습니다. 현재 |
차라리 module.xml에 언어 파일을 로드할지 여부를 정할 수 있는 게 좋지 않을까요? 기본으로 언어 파일을 로드하되, xml에 명시 놓으면 안 불러들이는 방식이 좋은 것 같네요. |
@smaker 그렇게까지 꼼꼼하게 정의하여 개발이 가능할지 모르겠습니다. |
https://code.google.com/p/xe-core/issues/detail?id=918
Reported by [email protected], 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
The text was updated successfully, but these errors were encountered: