Contribution pages with memberships timing out with logged in users
Something caused a regression with the 3.x of this extension, as far as I can tell. Just upgraded to 4.6.8 and 3.x of this extension.
Have been using this extension in Civi 4.4.x with v 2.6. on contribution forms with memberships. The client had created hundreds of discounts (single use discounts) but loaded fine on the page.
Now after the upgrade all contribution pages with memberships (even memberships with no assigned discount) time out. Error logs can only tell me that it has exceeded the maximum execution time and New Relic is showing heavy database calls from Civi.
There are two conditions where I can get the page to load:
- Make most discounts inactive so there are only a couple hundred tops. Page still loads quite slowly but it loads (14 seconds in 4.6.8/3.x compared to 3 seconds in 4.4.19/2.6)
- Or, view the contrib pages as anonymous (3 seconds in 4.6.8/3.x).
This suggests that it keeps trying to check if the current user is eligible for any discounts, or something like that.
I'm going to ask the client if they need all those discount codes active but seems like worth reporting that there is an upper bound to how many discounts can be checked before a page is fully loaded. Funnily, they never had this problem with the older 2.x versions.