Author Topic: my gallery works slowly =/ whats the reason?  (Read 7719 times)

0 Members and 1 Guest are viewing this topic.

Offline whimper

  • Newbie
  • *
  • Posts: 23
    • View Profile
my gallery works slowly =/ whats the reason?
« on: January 22, 2009, 09:08:10 PM »
at first i think its about ns and in a few days it would gonna ok, but 1 week later: same ...
i tried to fix it, i think its about hosting, then i installed it to 3 different hosting, but everytime it works slowly..
and im sure its not about hosting.. cz its really works fast. i m sure.
a different way ; it may about template, but i changed it to default theme, nothing is changed..
whats the reason ? can it be about htaccess?(it may about links way) umm it may about codes...
this is a big problem 4 me.. =(

take a look
www.wallpaperdownload.org

pls helP
thnXx for now.

www.WallpaperDownload.Org (on sale - satılıktır 60TL = 40$)

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: my gallery works slowly =/ whats the reason?
« Reply #1 on: January 22, 2009, 11:11:06 PM »
hi,

for rightnow remove tag cloud, then your "perfomance" will be better.
or change too root host with more "power" :)

or test your host with clean 4images not only default templates, how is the perfomance?
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: my gallery works slowly =/ whats the reason?
« Reply #2 on: January 23, 2009, 03:29:51 AM »
Also to better understand what actually is slowing the site down, turn on the stats:
in includes/constants.php find:
Code: [Select]
//define("PRINT_STATS", 1);remove the // in front (aka uncomment the line)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline whimper

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: my gallery works slowly =/ whats the reason?
« Reply #3 on: January 23, 2009, 09:27:59 AM »
i did the changes, and it works fast now as new installation;

www.wallpaperdownload.org/deneme/index.php i tried to new installation

but; about keycloud tag, its important for google, there is any alternate for it?
i modify sth for google ;

friendly urls, keyword cloud, and tags

now i removed tags...

twice of them .. are they enough ?(friendly urls and keyword cloud)
www.WallpaperDownload.Org (on sale - satılıktır 60TL = 40$)

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: my gallery works slowly =/ whats the reason?
« Reply #4 on: January 23, 2009, 09:31:32 AM »
your site is damn slow,

like V@no mentioned due that

Also to better understand what actually is slowing the site down, turn on the stats:
in includes/constants.php find:
Code: [Select]
//define("PRINT_STATS", 1);remove the // in front (aka uncomment the line)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline whimper

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: my gallery works slowly =/ whats the reason?
« Reply #5 on: January 23, 2009, 12:04:40 PM »
i installed again everything ..
its reallly fast as i want.. (when not upload pics)

its working slow when i upload 3 or more pics.. (i upload all pics from a link)
but it is silly reason, cz all thumbnails are 250*250 px , and not big files..
when i click a category page, its really damn slow

=/ brrrrrrrrrrr

i upload database on new installation,  again slow....



« Last Edit: January 23, 2009, 12:26:47 PM by whimper »
www.WallpaperDownload.Org (on sale - satılıktır 60TL = 40$)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: my gallery works slowly =/ whats the reason?
« Reply #6 on: January 23, 2009, 03:46:21 PM »
(i upload all pics from a link)
That's the answer to your question. Your server has to download the images from remote server to it's memory to check dimensions or any other image parameters, then continue execution of the script. That delay you see is when the server downloads and process the images.
The solution is: don't use remote images.

P.S.
4images doesn't "upload"/save localy images from URL.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline whimper

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: my gallery works slowly =/ whats the reason?
« Reply #7 on: January 23, 2009, 04:26:29 PM »
thank you for interest..
problem solved.

the key: dont use remote images in 4images.

one thing; i hadnt understand; in php forums or vbulletin, or a script
when a member open a new topic with images (remote images) , page opens more fastly (for ex sizes: 600*600 px  *  5-6 images)
but here, on mainpage, 5 thumbnails (250*250 px) opens slowly.. very slowly..
(last 3 hours i have been thinking on it) :D

thats the answer: 4images doesn't "upload"/save localy images from URL.  :?




thnx again ..
« Last Edit: January 23, 2009, 04:39:53 PM by whimper »
www.WallpaperDownload.Org (on sale - satılıktır 60TL = 40$)

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: my gallery works slowly =/ whats the reason?
« Reply #8 on: January 23, 2009, 07:15:42 PM »
forums don't need any information about images, they just output url to them and your browser handles these images. Most browsers handle images independently and can download several in parallel, at the same time.
In 4images case the PHP what downloading the images to the server, before the image address is being sent to the browser, plus PHP cannot execute several parts of the script in parallel, at the same time witch puts rest of the script on hold until image processing part finished it's job
« Last Edit: January 24, 2009, 03:59:24 AM by V@no »
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.