Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2021-04-14 17:27:40

sobolevfff
New member
Registered: 2020-12-21
Posts: 6

Too many PHP requests

Hello. When the admin panel is open in the browser, the chat generates too many PHP requests at this time. The chat makes a lot of requests, sometimes 2 requests every second. I am having problems with the number of PHP requests on the hosting due to the chat. I changed to proactive: false but it didn't help.
Please tell me what it can be and how to change it.

[Thu Apr 01 09:32:58 2021] [info] Executing "/home/*******/public_html/chat/index.php" as UID 802, GID 798
[Thu Apr 01 09:32:58 2021] [info] Executing "/home/*******/public_html/chat/index.php" as UID 802, GID 798
[Thu Apr 01 09:32:56 2021] [info] Executing "/home/*******/public_html/chat/index.php" as UID 802, GID 798
[Thu Apr 01 09:32:55 2021] [info] Executing "/home/*******/public_html/chat/index.php" as UID 802, GID 798

Last edited by sobolevfff (2021-04-14 17:30:35)

Offline

#2 2021-04-14 17:41:49

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Too many PHP requests

You did not provided any usefull information about what exactly requests you are talking.

You can play around with these
https://doc.livehelperchat.com/docs/cha … in-seconds

And make sure you set both to false in your embed code

proactive : false,
check_messages : false,

Offline

#3 2021-04-14 18:11:38

sobolevfff
New member
Registered: 2020-12-21
Posts: 6

Re: Too many PHP requests

The script looks now like this

<script>var LHC_API = LHC_API||{};
LHC_API.args = {mode:'widget',lhc_base_url:'//*******.com/chat/index.php/',wheight:450,wwidth:350,pheight:520,pwidth:500,domain:'*******.com',leaveamessage:true,check_messages:false,proactive:false};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.setAttribute('crossorigin','anonymous'); po.async = true;
var date = new Date();po.src = '//******.com/chat/design/defaulttheme/js/widgetv2/index.js?'+(""+date.getFullYear() + date.getMonth() + date.getDate());
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

When I open the chat control panel in the browser, the number of requests increases dramatically until the tab is closed
1618423892_screenshot_6.jpg

Offline

#4 2021-04-14 18:14:07

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Too many PHP requests

Offline

#5 2021-04-14 18:36:15

sobolevfff
New member
Registered: 2020-12-21
Posts: 6

Re: Too many PHP requests

I tried various settings and found that a large number of requests are generated if a tab is open where users are shown online.

Offline

#6 2021-04-14 18:37:56

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Too many PHP requests

As long you are not reading what I’m writing not much I can help smile this document tells it all. You just have to decrease frequenc how often check for a new messge

Offline

#7 2021-04-14 18:55:50

sobolevfff
New member
Registered: 2020-12-21
Posts: 6

Re: Too many PHP requests

Now I have made these settings. Can you please tell me what can be improved further?
1618426546_screenshot_7.png

Offline

#8 2021-04-14 19:20:39

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Too many PHP requests

This looks fine smile not much else you can improve smile

Offline

#9 2021-04-16 09:25:50

sobolevfff
New member
Registered: 2020-12-21
Posts: 6

Re: Too many PHP requests

Nothing has changed for the better. As soon as I open the chat control panel in the browser, it immediately generates many requests, even if I go to the lists tab, where users are not visible online.
1618565145_screenshot_8.jpg

Offline

Board footer