lscache plugin runs for 1 hour then stops

#1
Hi there,

I have the following issue with the lscache plugin on Opencart 3.0.3.6:

I've installed the following extension: lscache-opencart3.0-latest.ocmod.zip
I've purged all the cache and clicked on "Rebuild All LiteSpeed Cache".
The window with following extension opens and runs for exactly 1 hour: https://<mysite>/admin/index.php?route=extension/module/lscache&user_token=<xxx>
It never completes rebuilding the cache.
I have to restart it every hour and it stops running after an hour. After about 10 hours, it starts rebuilding from scratch.

I've added the following line in the.htaccess file:
<IfModule LiteSpeed>
php_value max_execution_time 50000
php_value session.gc_maxlifetime 50000
RewriteRule .* - [E=noabort:1, E=noconntimeout:1]
RewriteEngine On
CacheLookup on
</IfModule>

but it makes no difference.

I added a cron job to run every but it also does the same thing:
curl -N "http://yoursite/index.php?route=extension/module/lscache/recache&from=cli"

Please could you kindly assist with suggestions or recommendations that I could try to resolve the issue.

Regards,
Amesh
 

AndreyPopov

Well-Known Member
#2
this is not LSCache issue.

problem in your server host.


server php core settings limits max_execution_time.

my hoster limit this php core setting to max 3600.
any other settings cannot override it.
 
#6
Thanx for your responses.

The service provider says that they increased the time for:
server php core settings limits max_execution_time
but that didn't work.

I've tried:
SetEnvIf Request_URI "^\/admin\/index\.php" noabort noconntimeout
but it still doesn't work.

I've been advised to use The LiteMage Cache Crawler Script from the link below:
https://docs.litespeedtech.com/lscache/litemage/crawler/

Do you think this will work on Opencart as the LiteMage Cache Crawler is for Magento?

Regards,
Amesh
 

AndreyPopov

Well-Known Member
#7
The service provider says that they increased the time for:
server php core settings limits max_execution_time
but that didn't work.
what kind of LiteSpeed use your Service provider?
LSWS (LiteSpeed Web Server ) or OLS (OpenLiteSpeed)

create in root info.php with

PHP:
<?php
phpinfo();
?>
and see what default and current php core settings.



also create test-timeout.php
PHP:
<?php
echo date('h:i:s') . "\n";
sleep(3600);
echo date('h:i:s') . "\n";
change sleep from 600 to 3600 and more and see when you get error.
 
Last edited:
Top