This is an old revision of the document!
Run WP Cron PHP Processes With No Timeout
Please Note: This wiki is valid for v2.9.x and below of the LiteSpeed Cache Plugin for WordPress. If you are using v3.0 or above, please see the new documentation.
Some WordPress plugins or operations may need to run very long PHP proceses, but they may be killed by LiteSpeed Web Server with error 500 after 120 seconds. With that in mind, we have additional environment variables that will resolve that issue.
noconntimeout
You can use the noconntimeout
variable in the htaccess
file. Exlude WP Cron with this rule:
<IfModule Litespeed> RewriteEngine On RewriteRule (wp-cron)\.php - [E=noconntimeout:1] </IfModule>
SetEnv/SetEnvIf
You can use the SetEnv
/SetEnvIf
variable too, but we recommend using it only in a vhost file.
<IfModule Litespeed> SetEnv Request_URI "(wp-cron)\.php" noabort noconntimeout </IfModule>
For additional examples and information on how to configurate the server, you can see this wiki.
Both of these variables will allow you to run php processes with no limits for the web pages affected by this .htaccess
file.