Post by PakRicard » Sat May 10, 2014 4:13 pm

Hi all:

As suggested in http://forum.opencart.com/viewtopic.php?f=138&t=40573 I'm trying to use a subdomain for the images to speed up the site

I created a subdomain images.mywebsite.com pointing to mywebsite.com/image and it works as I can see the file images.mywebsite.com/no_image.jpg on the browser. :)

On a 1.5.6.1 installation, my config.php and admin/config.php don't have any define HTTP_IMAGE, but I have the define DIR_IMAGE

define('DIR_IMAGE', '/home4/bartolo/public_html/mywebsite.com/image/');

if I change it to

define('DIR_IMAGE', 'http://images.mywebsite.com/');

it does not show any images (even if I F5 refresh).

How should it be done on 1.5.6.1?

Thanks in advance,
Pak

Pak R


Newbie

Posts

Joined
Tue Feb 18, 2014 11:59 am

Post by ahranchwi » Wed Jun 11, 2014 3:45 pm

cane anyone help ???

Newbie

Posts

Joined
Tue Dec 10, 2013 2:36 pm


Post by hillfingerr » Sun Jun 22, 2014 7:48 am

same issue please someone come with a solution for this :(

New member

Posts

Joined
Mon May 26, 2014 8:22 pm

Post by IP_CAM » Mon Jun 23, 2014 9:00 am

just think about and forget, what your'e trying to do, OC does not work this way.

http://images.mywebsite.com/

is NO Server Path, it's just a regular URL-address. How then could OC create/store it's 'personal'
Image-Template Section plus the size-reduced images it creates, on another Site, called by HTTP?
It requires to do it's Job within it's own local network-environment, called by a 'local' path, not a url.

The only Images, possibly be called 'externally', could be DEFAULT Images, used by the
System, to be shown as stationaries, For buttons, Icons, and other 'fixed-sized' Template-Pic's.

Product-related Images (as well as (some) Logos+Banners) are all beeing 'redone' by the Software, shrinked to the 'ordered' Size, and then saved/placed in the local /Image/Cache-Sub, placed there to be recalled, if used, in the required size, so avoiding the (usually) large and fat Original to be 'reworked' every time, when such a Picture is beeing displayed somewhere, in some Size....

http://www.ipc.li/os/systemcache.jpg

get the point?

Ernie

ipc.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 PakRicard » Mon Jun 23, 2014 10:42 pm

Thanks for the explanation!

Then, viewtopic.php?f=138&t=40573 should be marked as "obsolete" or "do not try at your homes" as it is misleading IMHO.

Pak R


Newbie

Posts

Joined
Tue Feb 18, 2014 11:59 am

Post by IP_CAM » Tue Jun 24, 2014 12:21 am

... why not, otherways, most other 'things' around here would have to be marked in a similar way.
All that for free, looks and sounds like a dream, for most, it ends, just like a dream, as well.
It's, like on a scale, ranging from 0 - 100, they're all here as well. Many came, expecting to get rich quick
with it, not to learn on how to program...!

It just would be to easy, this way

all the best

Ernie

ipc.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 Dhaupin » Tue Jun 24, 2014 4:33 am

Q you should remove that thread. Keep in mind that if you do this you must buy an SSL for the subdomain too or else any images called from that sub will "break the green lock".

Also, why would it matter if you load images from a subdomain or not? I believe that is for multi-sites so that they image paths are seen as singular and more easily cached.......Like in walmarts case, they have soooo many different sites and domains and stuff that they need a central deploy point for images while under their realms. Unless you have a massive store with apps, utils, communities, etc that depend on a deploy point, AND an SSL protected subdomain i wouldnt worry about this at all.

https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.


User avatar
Active Member

Posts

Joined
Tue May 13, 2014 3:45 am
Location - PA
Who is online

Users browsing this forum: No registered users and 51 guests