Ljubo wrote: ↑Mon Jul 08, 2019 4:59 am
I desperately need this mod for OC 1.5.3.1...
---
Well, there are several ways, to speed up your OC.
1. Use this, to cache the Category Product-Number Values. It will
dramatically improve overall Listing Page Loading:
Cache category data
Caches category data for Opencart 1.5 to make it faster.
Opencart installs with alot of categories are really slow.
https://gist.github.com/weismannweb/a16 ... 89ca1d1209
---
2. Cache your Database Stuff, it also has a remarkable effect on Loading. But
only after changing the
echo $ouput; variable, obviously written
wrongly
in your OC Version
system/library/response.php file , also
in the
system_db_cache_pnsol.xml VqMod File too, to match the variable:
Code: Select all
FROM:
<search position="after" offset="1"><![CDATA[echo $output;]]></search>
TO:
<search position="after" offset="1"><![CDATA[echo $ouput;]]></search>
to make it work with your Version Code, if the wrongly written Variable really exists.
DB Cache
OpenCart 1.5.6.x DB Cache module
Caches database sql queries to improve performance to 10 times.
Automatically drop affected cache entries after any modification operation: insert/update/delete
https://www.opencart.com/index.php?rout ... n_id=25388
---
3. Make sure, to use MySqli, it dramatically improved Page Load,
and check your BOTH
config.php (ROOT +Admin) Driver
settings, to find out:
MySQLiz - MySQLi support
MySQLiz module adds MySQLi database driver support to OpenCart for old
versions of Opencart moved to modern hosting.
https://www.opencart.com/index.php?rout ... n_id=13041
---
Mysqli w/ SSL Certs
MySQLi with SSL support. This will allow for secure database communication via SSL.
This is the best way to add a layer of protection to your cart.
https://www.opencart.com/index.php?rout ... n_id=18572
---
Mysqli for Opencart 1.5.x
Add Mysqli to your older opencart versions BEFORE 1.5.6.1!
https://www.opencart.com/index.php?rout ... n_id=30233
---
4. Use the enclosed
.htaccess file, just RENAME the:
RewriteBase /bright/
to match your Site Subdirectory, if you use an URL like
www. yoursite/shop/
otherwise, if your Shop is located in the SITE ROOT Section, make it look like:
RewriteBase /
Code: Select all
## If your opencart installation does not run on the main web folder,
## make sure you folder it does run in ie. / becomes /cart/ or /shop/
## it's now set to match the SubDirectory: /shop/
RewriteBase /bright/
in
Line 79 of the
.htaccess File.
The .HTACCESS Zip File has now been removed again, it's available on personal request!
---
5. LINK your Styles and Scripts in the Theme
header.tpl File
In your THEME
header.tpl File, change the Links to Stylesheets and Scripts
to an
absolute http Value instead of having them linked 'internally'. And if
your Shop runs by a
http(s):// www. yourshop/ ... setting, make the Style + Script
links looking the opposite way, like
http(s):// yourshop/ ..., to make all those
Styles and
Scripts Cookie-Free, as this is called.
A sample header part, containing such ABSOLUTE URL Values, since my Sites are called by
http(s)://WWW. ....
Code: Select all
<link rel="stylesheet" type="text/css" href="http://openshop.li/shop/catalog/view/theme/default/stylesheet/stylesheet.css" />
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="http://openshop.li/shop/<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="http://openshop.li/shop/catalog/view/theme/default/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="http://openshop.li/shop/catalog/view/theme/default/stylesheet/ie6.css" />
<link rel="stylesheet" type="text/css" href="http://openshop.li/shop/catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="http://openshop.li/shop/catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://openshop.li/shop/catalog/view/javascript/common.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="http://openshop.li/shop/<?php echo $script; ?>"></script>
<?php } ?>
---
6. Make your Images cookiefree, your Version is easy able to.
Change in your ROOT
config.php File the URL Value, by
example, if your Shop runs under
http(s):// www. Yourshop,
make the image URL like
http(s):// Yourshop,
Code: Select all
define('HTTP_SERVER', 'http://www.opencart.li/bright/');
define('HTTP_IMAGE', 'http://opencart.li/bright/image/');
// HTTPS
define('HTTPS_SERVER', 'http://www.opencart.li/bright/');
define('HTTPS_IMAGE', 'http://opencart.li/bright/image/');
---
7. ATOMIX Turbo Database Indexer.
You already told me, to have used this fine Tool, but for others,
I mention it also, since it's a MUST, to have the DB fully indexed:
https://github.com/IP-CAM/opencart-turbo
---
All of those extensions and infos above should technically function, if you use a stock OC. 1.5.3.1, I assume.
And then, come back an tell us, what
gtmetrix.com means about it. Make a Test, before you change
anything, and one after, then, you'll know in detail, and we do too
Good Luck !
Ernie