This is an old revision of the document!


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.

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>

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.

  • Admin
  • Last modified: 2020/05/04 13:55
  • by Shivam Saluja