LightCache

LightCache
opencart duplicates queries...
so... go to site.dir/system/library/db.php
and replace

public function query($sql) {
return $this->adaptor->query($sql);
}

for

public function query($sql) {
$key = md5($sql);
if (empty($this->q) ) $this->q = [];
if (!isset($this->q[$key])) {
$this->q[$key] = $this->adaptor->query($sql);
}
$this->q[$key]
}




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8, 4.0.0.0, 4.0.1.0, 4.0.1.1, 4.0.2.0, 4.0.2.1, 4.0.2.2, 4.0.2.3, 3.0.3.9

Last Update
21 Feb 2024

Created
18 Sep 2020
295 Downloads
2 Comments
redcat@nxt.ru
redcat@nxt.ru
Member since: 26 Apr 2017

View all extensions Get Support