Post by Glopear » Thu Oct 01, 2015 10:48 pm

Hi

Was here a while back (few years ago) but recently started up a new site. Maybe this is a simple fix but my site is very slow from the off. I have currently only 1 product and category and its painfully slow.

Is there anything obvious I need to do here. Here's the site: lazyfruit.com

Would much appreciate if anyone could take a quick look.

New member

Posts

Joined
Thu Oct 01, 2015 10:39 pm

Post by IP_CAM » Fri Oct 02, 2015 2:45 am

There is some work left to do!
Good Luck
Ernie
jti.li/shop/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Glopear » Fri Oct 02, 2015 4:06 am

OK cheers but is this normal? I've seen a lot of posts about slow speeds due to lots of products/categories but not right from the off. I don't really want to invest a lot of time messing around with this kind of thing. By that I mean is this typical of opencart 2015. Never had these problems before.

New member

Posts

Joined
Thu Oct 01, 2015 10:39 pm

Post by IP_CAM » Fri Oct 02, 2015 4:33 am

this is OC-2 default habit..., in addition to a heavy Custom Theme! :-X
1. if NO nice little .htaccess file does it's Job right, like the Rabbit Rabbit
another not longer officially listed OC Mod, works on/for ALL VERSIONS!
http://www.opencarto.com/other/rabbit-rabbit.html
possibly also still available for the time beeing...:
http://webcache.googleusercontent.com/s ... clnk&gl=us

2. if Images are not marked with width/height Tags, missing probably since OC Version 1.0 :choke:
Below is the already modified/extended Content, matching OC v.1.5.6.x as well as Version 2 Models:
shop\catalog\model\tool\image.php

Code: Select all

if ($this->request->server['HTTPS']) {
	// return $this->config->get('config_ssl') . 'image/' . $new_image;
	return $this->config->get('config_ssl') . 'image/' . $new_image . '" width="' . $width . '" height="' . $height;
	} else {
	// return $this->config->get('config_url') . 'image/' . $new_image;
	return $this->config->get('config_url') . 'image/' . $new_image . '" width="' . $width . '" height="' . $height;
}
3. if Header CSS and JS Links are NOT set to avoid Cookie-Domain-Access
See my Demo Shop Header Section Source for details.

4. OC JS and CSS Files are not mininized
http://csscompressor.com/
http://javascript-compressor.com/
don't set the highest level, or you have a hard time, to ever find/edit something afterwards.
---

And if I never find out, how to add image.subdomain Links, it probably
won't get much faster than shown below, on my brandnew v.2.1 test Version.

USE NOTEPAD++ ONLY, if you ever work on Source Files!

good Luck! ;)
Ernie
http://www.jti.li/shop/
General Knowledge:
http://cartadvisor.com/blog/2013/11/05/ ... art-store/
Last edited by IP_CAM on Sat Oct 03, 2015 11:25 am, edited 5 times in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by IP_CAM » Sat Oct 03, 2015 2:40 am

thanks to Qphoria, I have the Image Subdomain Linking and so the Performance, as I like to!
---
VqMOD Restore http image for Opencart 2:
download/file.php?id=23867
found here:
viewtopic.php?f=138&t=40573#p546290
---
and to make my ADMIN IMAGE Upload/Handling Section work, I had to do this in
shop\admin\model\tool\image.php , Line 37-41,
to make it work (including image Sizes, it just looks more pro, even we are in Admin only...):

Code: Select all

if ($this->request->server['HTTPS']) {
return HTTPS_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;
} else {
return HTTP_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;
}
---
Admin config.php File Content:

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://www.jti.li/shop/admin/');
define('HTTP_CATALOG', 'http://www.jti.li/shop/');
define('HTTP_IMAGE', 'http://openshop.li/shop/image/');

// HTTPS
define('HTTPS_SERVER', 'http://www.jti.li/shop/admin/');
define('HTTPS_CATALOG', 'http://www.jti.li/shop/');
define('HTTPS_IMAGE', 'http://openshop.li/shop/image/');

// DIR
define('DIR_APPLICATION', '/home/jacobch/www/jti_li/shop/admin/');
define('DIR_SYSTEM', '/home/jacobch/www/jti_li/shop/system/');
define('DIR_LANGUAGE', '/home/jacobch/www/jti_li/shop/admin/language/');
define('DIR_TEMPLATE', '/home/jacobch/www/jti_li/shop/admin/view/template/');
define('DIR_CONFIG', '/home/jacobch/www/jti_li/shop/system/config/');
define('DIR_IMAGE', '/home/jacobch/www/openshop_li/shop/image/');
---
IT'S ALL PROTOTYPE WORK, DO NOT TAKE ANY OF THIS HERE FOR REAL !!! :laugh:
---
MAKE SURE to check my Test Shop Header Source, it's important on how to place CSS and Script Link LINES, CSS always come FIRST! SAMPLE:
if I could HANDLE this www-line differently,, like http://jti.li, and 'still' produce those
'problemsome' font-awesome PIC's, I would GAIN 1 PINGDOM (100%!) Percentage Point! Just to see, how little it takes... :(

"http://www.jti.li/shop/catalog/view/jav ... me.min.css"

So, everything else would be fine-tuning, to get still better results. But since I still don't know,
(never checked on yet!) if OC v.2 Category Product Counting is cached, and how, this is the end
of my V-2 Wisdom on this! Still, I am very satisfied with this result, under the Aspect,
that it has been 'produced' by use of a (default) Bootstrap-OC Theme. I am quite impressed! ;)

The Page has been tested with 60 different Products displayed. Performance Results vary, depending
on the RANGE of Products, Options, Images, Attributes, e.t.c. shown, by Nature of Things! This is,
why it is so hard to understand, that you have/need so MANY Server Requests, just to display rather
few Products on a Cat Page, in the first Place!
---
Just to update/complete this! ;D
Good Luck, I hope, it helps a little!
I now go back to, where I belong, but you made me curious, how much it takes, to make OC V.2.1 GO, by DEFAULT! ::)
Good Luck ! :D
Ernie

Test Shop:
http://www.jti.li/shop/

Image below displays SHOP/CONFIG.PHP File Content! ADMIN/CONFIG.PHP Content is shown above!

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 8 guests