Support

Home Forums Event Espresso Premium Change time taken for the AHEE__EE_Cron_Tasks__expired_transaction_check to run

Change time taken for the AHEE__EE_Cron_Tasks__expired_transaction_check to run

Posted: February 12, 2019 at 1:14 pm


CFIT

February 12, 2019 at 1:14 pm

I have a client who would like to set the AHEE__EE_Cron_Tasks__expired_transaction_check hook to run 30 minutes after a registration has been initiated. How could I go about changing this from the default 1 hour it is currently set to? Thank you for your help with this!


Tony

  • Support Staff

February 13, 2019 at 9:24 am

Hi there,

Its based on the session expiration, if no expiration is set on the session then EE defaults to 1 hour.

So you can try adding this snippet to your site:

https://gist.github.com/Pebblo/b6e20b03c57efe693bd86ebcf1b00ce9

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

That will set EE’s default session lifespan to 30mins and if your server doesn’t have an expiration set on sessions, that’s what will be used.

Note that when you alter the session you shorten the time the user has to select tickets, enter their details and pay. So if they are mid registration when the session expires they will lose their current session data and need to start again.

The support post ‘Change time taken for the AHEE__EE_Cron_Tasks__expired_transaction_check to run’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!