Title: PHP set time limit failed
Last modified: June 21, 2023

---

# PHP set time limit failed

 *  Resolved [joelmellin](https://wordpress.org/support/users/joelmellin/)
 * (@joelmellin)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-set-time-limit-failed/)
 * I get this message. What does it mean and what do I do about it?
 * “The PHP `set_time_limit()` function failed to set a maximum execution time of
   30 minuter to refresh the cache.”
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-set-time-limit-failed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-set-time-limit-failed/#post-16837245)
 * The default WPSSO_CACHE_REFRESH_MAX_TIME constant is defined to 1800 seconds 
   by default (30 mins), which should be plenty to complete the cache refresh. If
   you have a smaller site (by number of pages, terms, and users), you could try
   defining WPSSO_CACHE_REFRESH_MAX_TIME to 900 in your wp-config.php file.
 * I don’t know why your hosting provider would prevent adjusting / using [https://www.php.net/manual/en/function.set-time-limit.php](https://www.php.net/manual/en/function.set-time-limit.php)–
   it might be worth asking them.
 * js.

Viewing 1 replies (of 1 total)

The topic ‘PHP set time limit failed’ is closed to new replies.

 * ![](https://ps.w.org/wpsso/assets/icon-256x256.png?rev=3167695)
 * [WPSSO Core - Complete Schema Markup and Meta Tags](https://wordpress.org/plugins/wpsso/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsso/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsso/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsso/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsso/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsso/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/php-set-time-limit-failed/#post-16837245)
 * Status: resolved