Server crash
Collapse
X
-
MARK.B
vBulletin Support
------------
My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
My Unofficial vBulletin Cloud Demo: https://www.adminammo.com -
Thanks Mark, I will wait for 5.3.4. In the mean time, can I create a scheduled task like this? Advised to run this hourly?
PHP Code:<?php if (!defined('VB_ENTRY')) die('Access denied.');
$sql = new mysqli;
mysqli_query($sql, "truncate cache");
mysqli_query($sql, "truncate cacheevent");
mysqli_query($sql, "truncate searchlog");
$sql->close();
?>Last edited by Fleiding; Sat 16 Sep '17, 3:13am.Comment
-
No reason why not, I'm not enough of a coder to know if that's the best code to use, but yes that ought to work.MARK.B
vBulletin Support
------------
My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
My Unofficial vBulletin Cloud Demo: https://www.adminammo.comComment
-
I think I know what causes the issue. I use the link below to show the new posts on my forum. I just pressed the link and immediately hit return on my browser which caused the page to load again. At that moment, the server crashed.
Code:search?searchJSON=%7B%22view%22%3A%22topic%22%2C%22unread_only%22%3A1%2C%22sort%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22exclude_type%22%3A%5B%22vBForum_PrivateMessage%22%5D%7D
👍 1Comment
-
That is a standard search based URL using JSON. It is no different than any other search on the system, including those used by every search module. The fix for the searchlog table would cover this as well. However, we would need more detailed information from your server logs (httpd, php, and mysql) including the time of the query and all error messages to determine if this actual query is the culprit.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
Related Topics
Collapse
-
by hoslerI'm trying to trouble shoot some bottlenecks. I cannot tell if my server just isn't beefy enough or if VB5 is just naturally slow. At first I had apache+php+MySQL all running on one server. In an attempt...
-
Channel: Support Issues & Questions
-
-
by kostas80Hello
After upgrading to vb5 connect my server load is extremely high and the forum has become unusable
I have disable searching and set the datastore caching to file cache but...-
Channel: Support Issues & Questions
-
Comment