Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Performance Problems In Multi-Page Content Items

  • Oleksiy Shevchukevych
  • Oleksiy Shevchukevych's Avatar Topic Author
  • Offline
  • Junior Member
More
16 years 11 months ago #3273 by Oleksiy Shevchukevych
Performance Problems In Multi-Page Content Items was created by Oleksiy Shevchukevych
Hi Guys,

It took me a while to figure out that Simple Image Gallery PRO creates performance problems when I use it in multipage content item.

I have content item splitted up into 17 pages. Each page contains 2 galleries and every gallery consists of just one image. The total number of such-one page galleries is 35. Given such a setup I'm having 2 problems:

1) It takes extremely long to access any of content item's subpage (around 14 seconds)

2) When I access any of content item's subpage using IE, web site's template just drops

You can access multi-page content item I'm having problems with using this URL:

www.boxingcoachmike.com/index.php?option=com_content&task=view&id=8&Itemid=10000

If I remove all galleries from this multi-page content item everything works just fine.

Thanks
Cheetah

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #3274 by JoomlaWorks
Please switch popup engine to e.g. Slimbox and check again. Lytebox -the one you use- uses php output buffering which might be "heavy" on your server. Let me know...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Oleksiy Shevchukevych
  • Oleksiy Shevchukevych's Avatar Topic Author
  • Offline
  • Junior Member
More
16 years 11 months ago #3275 by Oleksiy Shevchukevych
Replied by Oleksiy Shevchukevych on topic Re: Performance Problems In Multi-Page Content Items
I've tried every popup engine. Problems still exist.

Thanks
Cheetah

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #3276 by JoomlaWorks
OK, try this. Open up the file mambots/content/plugin_jw_sigpro.php and at about line 284, replace this block of code:
				// create thumbnails
				if (file_exists($tempfolder.md5($_images_dir_.$name).$format) && filemtime ($tempfolder.md5($_images_dir_.$name).$format) + $cache_expire_time * 60 > time()) {
				 $html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$tempfolder.md5($_images_dir_.$name).$format.'" />'.$rightcomment;
				} else {
				 $fromname = $mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a];
				 $toname = $mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format;
				 $toname_live = $mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format;
				 $result = makeThumb( $fromname, $toname, $image_type, $_quality_, $_width_final_, $_height_final_);
				 if($result)
				    $html .=$leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment;
				 else
				    $html .='<span>Error creating thumbnail!</span>';
				}

with this:
				// create thumbnails
				$toname = $mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format;
				$toname_live = $mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format; 
				
				if (file_exists($toname) && (filemtime ($toname) + $cache_expire_time * 60 > time())) {
					$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment; 
				} else {
					$fromname = $mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a];
					$result = makeThumb( $fromname, $toname, $image_type, $_quality_, $_width_final_, $_height_final_);
					if($result) {
					$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment;
					} else {
					$html .= '<span>Error creating thumbnail!</span>';
					}
				}	

Let me know...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Oleksiy Shevchukevych
  • Oleksiy Shevchukevych's Avatar Topic Author
  • Offline
  • Junior Member
More
16 years 11 months ago #3277 by Oleksiy Shevchukevych
Replied by Oleksiy Shevchukevych on topic Re: Performance Problems In Multi-Page Content Items
Hi Fotis,

Thanks, it helped. Problem #1 is gone. Although problem #2 still exists. i.e. in IE template drops and I'm getting some javascript errors. In Firefox everything is fine.

Thanks
Oleksiy

Please Log in or Create an account to join the conversation.

  • Oleksiy Shevchukevych
  • Oleksiy Shevchukevych's Avatar Topic Author
  • Offline
  • Junior Member
More
16 years 11 months ago #3278 by Oleksiy Shevchukevych
Replied by Oleksiy Shevchukevych on topic Re: Performance Problems In Multi-Page Content Items
I've switched to Lytebox popup engine and I'm not getting JavaScript errors anymore. But template is still missing in IE.

Cheetah

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #3279 by JoomlaWorks
Well, for one let me note that your servers is a bit slow on response. Now try this. Change this part in your template:
<!--[if lte IE 7]>
<link href="http://www.boxingcoachmike.com/templates/rt_sporticus_v2/css/template_ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<link href="http://www.boxingcoachmike.com/templates/rt_sporticus_v2/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->

with this:
<!--[if IE 7]>
<link href="http://www.boxingcoachmike.com/templates/rt_sporticus_v2/css/template_ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<link href="http://www.boxingcoachmike.com/templates/rt_sporticus_v2/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->

Perhaps the 2 stylesheets conflicted. Notice that the change is on the first "if" statement. Get back to me...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Oleksiy Shevchukevych
  • Oleksiy Shevchukevych's Avatar Topic Author
  • Offline
  • Junior Member
More
16 years 11 months ago #3280 by Oleksiy Shevchukevych
Replied by Oleksiy Shevchukevych on topic Re: Performance Problems In Multi-Page Content Items
Changed the template. It still doesn't work.

As for slownes, I have noticed that it's slow only when first request is made after a while. Any subsequent request is much faster. Probably thubnails get regenerated that's why it's taking so long

Thanks
Cheetah

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #3281 by JoomlaWorks
What time have you set for the thumb cache in the plugin's parameters?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Oleksiy Shevchukevych
  • Oleksiy Shevchukevych's Avatar Topic Author
  • Offline
  • Junior Member
More
16 years 11 months ago #3282 by Oleksiy Shevchukevych
Replied by Oleksiy Shevchukevych on topic Re: Performance Problems In Multi-Page Content Items
It is set to default value which is 120 seconds

Thanks
Cheetah

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum