From: Pak R. <pak...@gm...> - 2014-01-02 03:11:57
|
Hi all: I have been investigating a bit about increase of page loading time and it seems like we can improve it if we store images in a subdomain. I attach some links I found about it: http://css-tricks.com/images-on-a-subdomain/ http://www.techinfoblog.net/host-images-on-sub-domain-to-increase-page-load-speed-of-your-wordpress-blog/ http://www.inmotionhosting.com/support/edu/opencart/319-using-a-subdomain-to-store-your-images-in-opencart http://cathyreisenwitz.com/blog/2010/11/15/image-seo-host-images-on-subdomain-or-subfolder/ With more and more scripts in webERP using images, I wonder if it makes sense we study this option. I thing the only change in webERP should be changing the $_SESSION['part_pics'] to a absolute address instead of relative, but not sure if there are problems related to the use of absolute addresses We should be able to access images in paths like: $_SESSION['part_pics'] = "http://images.mydomain.com/" $_SESSION['part_pics'] = "http://images.mydomain.com/webERP" $_SESSION['part_pics'] = "http://images.anotherdomain.com/" Does it make sense to you? Regards, Ricard |
From: Phil D. <ph...@lo...> - 2014-01-03 03:15:33
|
Hi Ricard, Does it work just changing to an absolute address? I think it should... without looking. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 02/01/14 16:11, Pak Ricard wrote: > Hi all: > > I have been investigating a bit about increase of page loading time > and it seems like we can improve it if we store images in a subdomain. > I attach some links I found about it: > http://css-tricks.com/images-on-a-subdomain/ > http://www.techinfoblog.net/host-images-on-sub-domain-to-increase-page-load-speed-of-your-wordpress-blog/ > http://www.inmotionhosting.com/support/edu/opencart/319-using-a-subdomain-to-store-your-images-in-opencart > http://cathyreisenwitz.com/blog/2010/11/15/image-seo-host-images-on-subdomain-or-subfolder/ > > With more and more scripts in webERP using images, I wonder if it > makes sense we study this option. > > I thing the only change in webERP should be changing the > $_SESSION['part_pics'] to a absolute address instead of relative, but > not sure if there are problems related to the use of absolute addresses > > We should be able to access images in paths like: > $_SESSION['part_pics'] = "http://images.mydomain.com/" > $_SESSION['part_pics'] = "http://images.mydomain.com/webERP" > $_SESSION['part_pics'] = "http://images.anotherdomain.com/" > > Does it make sense to you? > > Regards, > Ricard > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Pak R. <pak...@gm...> - 2014-01-03 09:23:31
|
Hi: in config table we store just the relative path from webERP base "companies/mycompanyname/part_pics" A quick search and: SystemParameters.php: Needs to convert the data entry for part_pics_dir into a text (as user can enter any URL) In GoodsReceived.php line 164 should be deleted the $RootPath . '/' part In PO_items.php line 1221, 1222 should be deleted the $RootPath . '/' part Besides that I think we are done. Am I overlooking at details, or are we on the right path? I'm a bit afraid of this kind of small changes with wide consequences Regards, Ricard 2014/1/3 Phil Daintree <ph...@lo...> > Hi Ricard, > > Does it work just changing to an absolute address? I think it should... > without looking. > > Phil > > Phil Daintree > Logic Works Ltd - +64 (0)275 567890http://www.logicworks.co.nz > > On 02/01/14 16:11, Pak Ricard wrote: > > Hi all: > > I have been investigating a bit about increase of page loading time and it > seems like we can improve it if we store images in a subdomain. I attach > some links I found about it: > http://css-tricks.com/images-on-a-subdomain/ > > http://www.techinfoblog.net/host-images-on-sub-domain-to-increase-page-load-speed-of-your-wordpress-blog/ > > http://www.inmotionhosting.com/support/edu/opencart/319-using-a-subdomain-to-store-your-images-in-opencart > > http://cathyreisenwitz.com/blog/2010/11/15/image-seo-host-images-on-subdomain-or-subfolder/ > > With more and more scripts in webERP using images, I wonder if it makes > sense we study this option. > > I thing the only change in webERP should be changing the > $_SESSION['part_pics'] to a absolute address instead of relative, but not > sure if there are problems related to the use of absolute addresses > > We should be able to access images in paths like: > $_SESSION['part_pics'] = "http://images.mydomain.com/" > $_SESSION['part_pics'] = "http://images.mydomain.com/webERP" > $_SESSION['part_pics'] = "http://images.anotherdomain.com/" > > Does it make sense to you? > > Regards, > Ricard > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Web-erp-developers mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: ExsonQu <hex...@gm...> - 2014-01-03 10:09:02
|
*Hi, Richard:* Thank you for your efforts to improve webERP's performance. I'm wondering if this method really solve your problem? If you separate two domains in one server, it'll make a burden instead of improve efficiency IMHO. The solution in your provided link is to utilize client side's resource to load data from more than one resources. But in the same server, if we introduce more jobs, the load of the server will be double, does that make sense? Or I just overlook some important point? Thanks and best regards! Exson -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Increase-speed-loading-images-from-a-subdomain-tp4657128p4657131.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |
From: Pak R. <pak...@gm...> - 2014-01-03 23:29:02
|
Hi all: I was thinking to "give the freedom" to place the part_pics folder anywhere, but not the other subfolders in the company folder. The part_pics folder should contain only JPG images. I'm not an expert in server security. So, all scripts will be located where they are now, and the default setting for$_SESSION['part_pics_dir'] can be the same one as it is now, so no security issues. If the admin wishes to place it somewhere else... he has the chance to do it. Regading Exson's POV, I really have no idea. I just found those links as a side effect setting up an ecommerce site, tried it, and it seems to work ok. Fact is pages load faster, and being a LAMP installation I think it can be also applicable to webERP. So, I left the final decision to the guru's final votes. For it? / Against? Regards, Ricard 2014/1/3 ExsonQu <hex...@gm...> > *Hi, Richard:* > > Thank you for your efforts to improve webERP's performance. > I'm wondering if this method really solve your problem? > > If you separate two domains in one server, it'll make a burden > instead of improve efficiency IMHO. > > The solution in your provided link is to utilize client side's > resource to load data from more than one resources. But in the same server, > if we introduce more jobs, the load of the server will be double, does that > make sense? > > Or I just overlook some important point? > > Thanks and best regards! > > Exson > > > > > > -- > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Increase-speed-loading-images-from-a-subdomain-tp4657128p4657131.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: ExsonQu <hex...@gm...> - 2014-01-13 02:10:29
|
*Hi, Richard:* Thank you for your great efforts! I support to change the relative path to the domain name for those picture etc. Have no idea if it improve the performance to add a sub-domain. Thanks and best regards! Exson -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Increase-speed-loading-images-from-a-subdomain-tp4657128p4657163.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |