Server updates
-
thorsten.otto
- Posts: 148
- Joined: 04 Nov 2019 02:20
Re: Server updates
Yes, it's editable. At least i can enter text there, didn't try to send the changes.
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Server updates
The straw that broke the camel's back :lol:
Code: Select all
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in SpriteGrid.php on line 34-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Server updates
I have been doing some tests to decrease the store page load time.. I used USA as the client, and server is in the Netherlands.
Currently every image is loaded individually...Hence 224 requests.
Using css sprites ( several images were actually missing but at this point I really don't care) the requests drop to 69 and the page size increases dramatically.
Compressing the png css sprite file greatly reduced the file size, But load times was basically the same.
There will be of course a margin of error in tests, but reducing the connections definitely seems to help.
I'm not sure currently if I will go ahead with doing this anyway. It looks like the css sprites do not appear until the store page has actually been displayed :roll: But also, every item I add or remove items from my store I would have to rebuild the sprite file. Overall makes things more time-consuming to maintain rather than just dumping a individual image file over.
A plus point of using the sprites, is my store has to obtain image dimensions of every image because of some bizarre rendering bugs in firefox. Using the css does mean the dimensions are already worked out and stored so it would reduce server load fractionally in that respect.
EDIT:
The tables have turned now it seems.. I think what is happening is the large sprite file is not yet actually loaded when the store front is rendered. I found a extension for chrome to show page load times between the two methods, and now preloading the sprite image actually takes half a second longer!
So I think I'm just calling it now, but it really is not going to make any difference which method is used other than using sprites just makes things even more complicated.
Currently every image is loaded individually...Hence 224 requests.
Using css sprites ( several images were actually missing but at this point I really don't care) the requests drop to 69 and the page size increases dramatically.
Compressing the png css sprite file greatly reduced the file size, But load times was basically the same.
There will be of course a margin of error in tests, but reducing the connections definitely seems to help.
I'm not sure currently if I will go ahead with doing this anyway. It looks like the css sprites do not appear until the store page has actually been displayed :roll: But also, every item I add or remove items from my store I would have to rebuild the sprite file. Overall makes things more time-consuming to maintain rather than just dumping a individual image file over.
A plus point of using the sprites, is my store has to obtain image dimensions of every image because of some bizarre rendering bugs in firefox. Using the css does mean the dimensions are already worked out and stored so it would reduce server load fractionally in that respect.
EDIT:
The tables have turned now it seems.. I think what is happening is the large sprite file is not yet actually loaded when the store front is rendered. I found a extension for chrome to show page load times between the two methods, and now preloading the sprite image actually takes half a second longer!
So I think I'm just calling it now, but it really is not going to make any difference which method is used other than using sprites just makes things even more complicated.
You do not have the required permissions to view the files attached to this post.
-
stephen_usher
- Site sponsor

- Posts: 7376
- Joined: 13 Nov 2017 19:19
- Location: Oxford, UK.
Re: Server updates
I guess the only other way to make things quicker is to restructure the site so that each category of item is on its own page with an index landing page pointing to the sub-pages.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Server updates
Ironically that is actually a feature of the current store where individual sections can be loaded. Looks like I totally forgot about it as it no longer works for some reason :roll:stephen_usher wrote: 31 May 2021 12:39 I guess the only other way to make things quicker is to restructure the site so that each category of item is on its own page with an index landing page pointing to the sub-pages.
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Server updates
ah, I see what's going on now.. In my SQL code, I put in a clause to only output a particular section if that section was only selected. This does actually work, and it does save a whole lot of hits on the SQL server. BUT, the problem is I need all the codes from the database to verify that people are actually trying to buy a valid item code. So it would actually remove "invalid" codes from your basket..
I will see if I can finish that coding off..
I will see if I can finish that coding off..
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Server updates
I'm going to see if I can get this system running on exxoshost as people not getting emails is becoming a huge problem now :roll: The updates were all done on the new server and updated forum software, so not sure how well or easy it will be to backport.
The updates are to allow forum users to view all their order history and tracking in your forum control panel. It's tested and working in the new server. Just wasn't intended to be rolled out on exxoshost.
I will try and have a look at it tomorrow. So if the server crashes everone know what's going on...
The updates are to allow forum users to view all their order history and tracking in your forum control panel. It's tested and working in the new server. Just wasn't intended to be rolled out on exxoshost.
I will try and have a look at it tomorrow. So if the server crashes everone know what's going on...
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Server updates
I already broke it yesterday, but nobody noticed did they ;) :hide:
A continuation is really this thread now... https://www.exxosforum.co.uk/forum/viewt ... =90&t=4690
-
rubber_jonnie
- Site Admin

- Posts: 14888
- Joined: 17 Aug 2017 19:40
- Location: Essex
Re: Server updates
Errrm, afraid I noticed......exxos wrote: 05 Oct 2021 12:42I already broke it yesterday, but nobody noticed did they ;) :hide:
A continuation is really this thread now... https://www.exxosforum.co.uk/forum/viewt ... =90&t=4690
Couldn't get on for a few minutes, but then I couldn't contact you by PM or email as the site was down. Came back up pretty quickly.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
Who is online
Users browsing this forum: ClaudeBot and 3 guests