OpenCart getCategories() function slow page load

취소 완료 등록 시간: Oct 17, 2013 착불
취소 완료 착불

As you can see in [url removed, login to view], the page load speed is very slow.

This is due the categories in left side.

The fault is in here:

public function getCategories($parent_id = 0) {

$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "category c LEFT JOIN " . DB_PREFIX . "category_description cd ON (c.category_id = cd.category_id) LEFT JOIN " . DB_PREFIX . "category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '" . (int)$parent_id . "' AND cd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND c2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND [url removed, login to view] = '1' ORDER BY c.sort_order, LCASE([url removed, login to view])");

return $query->rows;

}

The server DOES HAVE Memcache.

If you are able to fix this, please post in comments FIRST WORD "Understood." and details. If the first word is not the one mentioned, you're assumed as spamer and ignored.

MySQL 오픈 카트 PHP

프로젝트 ID: #5036853

프로젝트 소개

6 건(제안서) 재택 근무형 프로젝트 서비스 이용 중: Oct 18, 2013

이 일자리에 대한 프리랜서 6 명의 평균 입찰가: $84

ntiersolutions

Understood Hi, I can optimize the left category menu. But this doesnt mean that it will speed up your overall website. Thanks, Harsh

$242 USD (1일 이내)
(264 리뷰)
7.0
PhungTran

"Understood" - i'm here for you. Opencart expert here. Let's start with me right now ! Thank you so much !

$29 USD (0일 이내)
(187 리뷰)
5.8
datadiggers

Hello, I'm Matt and I specialize in performance optimization of PHP/MySQL/HTML applications, including OpenCart. Most of my projects are related solely to performance optimization. Some of my past work: https://www 기타

$100 USD (2일 이내)
(12 리뷰)
5.3
hardikshah83

Understood. Experienced programmer with more than 10 years of development experience here. I have handled production applications with various technologies like .NET, PHP, Classic ASP and many more using databases like 기타

$50 USD (3일 이내)
(8 리뷰)
3.6