Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use set_time_limit() instead of ini_set( 'max_execution_time' ) #3

Closed
wpscholar opened this issue Apr 17, 2023 · 0 comments · Fixed by #12
Closed

Use set_time_limit() instead of ini_set( 'max_execution_time' ) #3

wpscholar opened this issue Apr 17, 2023 · 0 comments · Fixed by #12

Comments

@wpscholar
Copy link
Member

As a best practice, we should use the set_time_limit() function instead of the ini_set() function and setting max_execution_time.

The primary reason is that the set_time_limit() function sets the time limit for the current script only. Setting max_execution_time impacts the entire PHP environment and could cause performance issues.

@amartya-dev amartya-dev mentioned this issue Apr 17, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant