Why gallery generate BIG load of server, my test

Forum rules
Support ended: 31.12.2011

Why gallery generate BIG load of server, my test

Postby maxbmx » Wed May 21, 2008 10:48 pm

In my opinion PHPBB Gallery generate big cos:
1. Big images when water mark is "on" are imposed on the fly by the server instead of caching images.
2. Why images are in image.php?album_id=1&image_id=36 form, instead of directory/cached_image.jpg?

*my forum have about 10k users and generate about 50k pageviews.
maxbmx
Posts < 10
Posts < 10
 
Posts: 4
Topics: 2
Joined: Mon May 19, 2008 10:28 pm

Re: Why gallery generate BIG load of server, my test

Postby Bird-Kid » Thu May 22, 2008 12:26 am

maxbmx wrote:2. Why images are in image.php?album_id=1&image_id=36 form, instead of directory/cached_image.jpg?
security reasons, i guess :P
Image
User avatar
Bird-Kid
Posts > 50
Posts > 50
 
Posts: 100
Topics: 2
Images: 1
Joined: Tue Apr 22, 2008 8:00 pm
Location: Austria, Europe, Earth, Solar System, Orion Arm, Milky Way, Observable Universe
phpBB.de: Bird-Kid
phpBB.com: Bird-Kid

Re: Why gallery generate BIG load of server, my test

Postby nickvergessen » Thu May 22, 2008 12:27 am

maxbmx wrote:1. Big images when water mark is "on" are imposed on the fly by the server instead of caching images.
i don't understand this one
maxbmx wrote:2. Why images are in image.php?album_id=1&image_id=36 form, instead of directory/cached_image.jpg?

to restrict access by permissions?!
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Why gallery generate BIG load of server, my test

Postby maxbmx » Thu May 22, 2008 12:58 am

1. Big images when water mark is "on" are imposed on the fly by the server instead of caching images.

I think that gallery could work a lot faster if big images (the image on image_page.php page) have caching... not being worked each time when user clicked...
maxbmx
Posts < 10
Posts < 10
 
Posts: 4
Topics: 2
Joined: Mon May 19, 2008 10:28 pm

Re: Why gallery generate BIG load of server, my test

Postby Bird-Kid » Thu May 22, 2008 2:55 pm

1.

oh, gotcha!

I noticed the same, but I think that's a common php-image lack

well, what he means is that .. if u r looking on an image from the gallery (e.g. in ur sig, or in the gallery,..), u can watch ur browser refreshing the image each time u re-visit the page


but the strangest thing is: that lack won't appear on this board/gallery :shock:

example:
http://frag.rapidspace.de/forum/gallery ... mage_id=26
click that link to my old avatar once - u c how ur browser loads it for the first time
close the window/tab and click the link again - u should notice that ur browser refreshes it

try the same with an image from this board's gallery and u'll c that it got locally cached! :o

so, maybe that reloading-behaviour depends on the server - or did you, nickvergessen, modify it somehow so the lack of caching was fixed? :?:


note: whenever I said 'browser', I was talking about the latest stable-release of Mozilla Firefox 2!
Image
User avatar
Bird-Kid
Posts > 50
Posts > 50
 
Posts: 100
Topics: 2
Images: 1
Joined: Tue Apr 22, 2008 8:00 pm
Location: Austria, Europe, Earth, Solar System, Orion Arm, Milky Way, Observable Universe
phpBB.de: Bird-Kid
phpBB.com: Bird-Kid

Re: Why gallery generate BIG load of server, my test

Postby nickvergessen » Thu May 22, 2008 3:01 pm

no, im using the gallery like it is in 0.3.1 (even with the already fixed bugs)
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Why gallery generate BIG load of server, my test

Postby maxbmx » Fri May 30, 2008 12:00 am

IMO if all permissions is off (all are allowed see all gallerys) images should be in this form: directory/cached_image.jpg
not this image_page.php?album_id=1&image_id=65. Gallery isnt very quick.. :(
maxbmx
Posts < 10
Posts < 10
 
Posts: 4
Topics: 2
Joined: Mon May 19, 2008 10:28 pm


Return to Support & Administration

Who is online

Users browsing this forum: No registered users and 0 guests

 

cron