Page 1 of 1

Slow Link Generation

PostPosted: November 4th, 2011, 2:15 pm
by seofeed
I've found that pages that have to generate multiple Buy Now links are very slow to be created. Not sure if there's a way around it. Here's an example:

http://curationsoft.com/download

http://curationsoft.com/pricing

Exact same pages in terms of content, images, etc.. The only difference is the pricing page has S2Member generated links. 10 of them actually. You'll notice how much slower it is to load than the other. S2Member link generation is the only thing that would cause it.

Have you seen this behavior before? Any tips on speeding it up without changing everything?

Re: Slow Link Generation

PostPosted: November 4th, 2011, 2:22 pm
by Eduan
Try the Quick Cache plugin and see if that helps.

Re: Slow Link Generation

PostPosted: November 4th, 2011, 3:44 pm
by seofeed
That's twice I've seen that. We use W3 Cache and our other problem is that free users are added to the system twice in wp_usermeta. Think I'll try it out.

Re: Slow Link Generation

PostPosted: November 4th, 2011, 4:19 pm
by Eduan
Okay, tell me how it goes.

Re: Slow Link Generation

PostPosted: November 4th, 2011, 5:30 pm
by seofeed
Ok, installed Quick Cache. Good news is it seemed to fix my double user problem. Thank God. It's been a pain deleting those double entries to get the right numbers. On the other hand, the pricing page still takes forever too load.

Checking the source code, Quick Cache is serving the download but not the pricing page. So strange. Still investigating.

Re: Slow Link Generation

PostPosted: November 4th, 2011, 5:33 pm
by Eduan
1 down.
2 to go.

Re: Slow Link Generation

PostPosted: November 4th, 2011, 5:49 pm
by seofeed
Ok no idea. Not sure why it would cache the /download page but not cache the /pricing page

Re: Slow Link Generation

PostPosted: November 4th, 2011, 6:29 pm
by Eduan
After installing Quick Cache did you deactivate or remove W3 Cache all together?

Sometimes even after you deactivate a plugin, bits of it can still cause incompatibilities if not uninstalled, just so you know...

Re: Slow Link Generation

PostPosted: November 4th, 2011, 7:17 pm
by seofeed
I disabled everything on it except for the CDN integration which I'm using. I'll try it though.

Re: Slow Link Generation

PostPosted: November 4th, 2011, 7:37 pm
by seofeed
Ok uninstalled and nothing. Quick Cache just ignores that page. No idea why. Any help is still much appreciated and I will post in that forum as well.

Re: Slow Link Generation

PostPosted: November 5th, 2011, 10:47 pm
by Cristián Lávaque
I'll ask Jason about it.

Re: Slow Link Generation

PostPosted: November 6th, 2011, 12:07 pm
by Jason Caldwell
Thanks for the heads up on this thread.

FYI: Quick Cache and s2Member are perfectly suited to each other, simply because I developed both of these plugins together. So, when choosing a cache plugin to run with s2Member, Quick Cache is almost always your best bet. There are internal compatibilities between s2Member and Quick Cache that are more finely tuned than other cache plugins may be able to accomplish.

FYI: As one example of this. s2Member has the unique ability to disable Quick Cache dynamically, on any Post/Page that contains an s2Member Pro Form or Payment Button, to remove any possibility of a corrupted checkout experience, given the dynamic nature of PayPal Button variables and the data contained therein. This is why your particular page with PayPal Buttons is not being served from the cache, and that's what most site owners would want.

Regarding slow load times. Are you serving encrypted buttons?
( i.e. have you enabled PayPal Button encryption? )

Re: Slow Link Generation

PostPosted: November 6th, 2011, 12:27 pm
by Jason Caldwell
FYI: When/if you enable PayPal Button Encryption with s2Member, this adds an additional API connection to your page generation time, because s2Member must connect to the PayPal API and dynamically encrypt your Button data over the Button Encryption API method.

Therefore, adding 10 PayPal Buttons to a single Post/Page, creates an additional 10 API calls when/if Button Encryption is enabled ( thereby slowing your page generation time to a crawl ).

We will continue to work on optimizing this in future releases.
Ideally, s2Member would be capable of encrypting your Buttons server-side, without an API call. However, we have found there to be MANY technical challenges with this, including many server-specific compatibility issues. Currently, the PayPal API Button Encryption method is the most reliable, but does suffer from a potential bottleneck in the right situation, such as yours.

Re: Slow Link Generation

PostPosted: November 6th, 2011, 10:07 pm
by Cristián Lávaque
Thanks for the explanation. :)

He could create buttons over at PayPal following your instructions and use those, right? viewtopic.php?f=36&t=309#p1333

Wouldn't that save the API call? Would he have any disadvantage with these over the shortcode ones?

Re: Slow Link Generation

PostPosted: November 7th, 2011, 2:18 am
by Jason Caldwell
Cristián Lávaque wrote:Thanks for the explanation. :)

He could create buttons over at PayPal following your instructions and use those, right? viewtopic.php?f=36&t=309#p1333

Wouldn't that save the API call? Would he have any disadvantage with these over the shortcode ones?

Yes, that would be just fine to do that.

Re: Slow Link Generation

PostPosted: November 7th, 2011, 10:37 pm
by seofeed
Hey Guys, thanks so much for addressing this. Good to know that's why the Cache wasn't generated. I do have encrypted buttons enabled. I will investigate and let you know the results but glad to have the answers and solutions.

Re: Slow Link Generation

PostPosted: November 7th, 2011, 10:40 pm
by seofeed
Whoa, removing the button encryption fixed it and it was instant. It's pretty much normal now and I'm set. Thanks so much!

Re: Slow Link Generation

PostPosted: November 10th, 2011, 11:38 pm
by Cristián Lávaque
That's great! Although having the button unencrypted pretty much lets someone edit your values before submitting. I strongly suggest you creating the buttons over at PayPal following Jason's instructions. viewtopic.php?f=36&t=309#p1333

I hope that helps. :)

Re: Slow Link Generation

PostPosted: December 15th, 2011, 2:11 am
by chadagrawal
Is there a fix like this for the clickbank integration?

I have deleted unnecessary plugins, cleaned everything out, and I'm still getting a slow load time :-(...

any ideas?

I'm using wp super cache because quick cache seemed to not be working at all...

Re: Slow Link Generation

PostPosted: December 15th, 2011, 8:15 pm
by Jason Caldwell
chadagrawal wrote:Is there a fix like this for the clickbank integration?

I have deleted unnecessary plugins, cleaned everything out, and I'm still getting a slow load time :-(...

any ideas?

I'm using wp super cache because quick cache seemed to not be working at all...
s2Member does not make any API calls to encrypt ClickBank Buttons. ClickBank Buttons are secured with a checksum by s2Member; so API calls are not necessary. Slow load times with ClickBank buttons should not be an issue. I would look elsewhere.