News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Parallelize downloads across hostnames with Virtuemart

Started by Gotten123, September 15, 2014, 13:47:14 PM

Previous topic - Next topic

Gotten123

Hello,

I am trying to make my site more efficient by spreading the load of images across hostnames. I have a subdomain to a different IP called 'images.***.co.uk' I have copied the whole image directory of the main images directory to this sub. My issue is that changing the directory path in Media Settings in joomla is relative to Joomla and not the root apart from vm safe path which is relative to the root. I would like to change it so all paths are like this so i can change the paths to the new subdomain to make the site faster.

How do I change this?

version 2.0.20b

joomla 2.5.11

GJC Web Design

as in the product objects the path is also relative just experiment with adding http://images.xxxx.co.uk/ in the template calls etc

or a general update in the #__virtuemart_medias table to add the http -- you will have to experiment
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Gotten123

Okay i'll have a look at that, would rather look into changing template calls rather than changing db.

Image below gives context on what i'm trying to do. because the files are in a different part of the server and the start of the path is the start of joomla I can't link to it by default

https://www.dropbox.com/s/o1xkuhxkfwmupjf/333.jpg?dl=0

jjk

Just wondering if you wouldn't get the same performance effect by using image subfolders like this:
http://forum.virtuemart.net/index.php?topic=115516.msg389228#msg389228
The links to the images are still stored in a single table, but the server doesn't have to go through a list of thousands of image file names in a single image folder.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Gotten123

If I understand you right, I don't think its so much the location its just that spreading 'static' contents across different hostnames can stop browser bottlenecks when it connects to two different hostnames rather than just the one.

Thank you for your comments so far!

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Gotten123

Thank you for the responses, but is there anyway I can edit the files so it goes to the root and not joomlas top level? Maybe there is a way i can hack the db table entry but that's probably not the best idea lol!