mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
2d81d3715d
commit
ff1fc214db
4 changed files with 22 additions and 1 deletions
|
@ -4,3 +4,6 @@ FROM mariadb:latest
|
||||||
|
|
||||||
# Set correct permissions for /tmp directory
|
# Set correct permissions for /tmp directory
|
||||||
RUN chmod 1777 /tmp
|
RUN chmod 1777 /tmp
|
||||||
|
|
||||||
|
# Copy custom MySQL configuration file
|
||||||
|
COPY deploy/my.cnf /etc/mysql/my.cnf
|
||||||
|
|
13
deploy/my.cnf
Normal file
13
deploy/my.cnf
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[mysqld]
|
||||||
|
wait_timeout = 28800
|
||||||
|
interactive_timeout = 28800
|
||||||
|
max_allowed_packet = 256M
|
||||||
|
innodb_buffer_pool_size = 512M
|
||||||
|
innodb_log_file_size = 256M
|
||||||
|
innodb_file_per_table = 1
|
||||||
|
innodb_flush_log_at_trx_commit = 1
|
||||||
|
innodb_lock_wait_timeout = 50
|
||||||
|
innodb_log_buffer_size = 8M
|
||||||
|
innodb_io_capacity = 500
|
||||||
|
innodb_flush_method = O_DIRECT
|
||||||
|
net_buffer_length = 64K
|
|
@ -36,6 +36,11 @@ global $disableMysqlNdMethods;
|
||||||
// this is only to test both methods more easy.
|
// this is only to test both methods more easy.
|
||||||
$disableMysqlNdMethods = false;
|
$disableMysqlNdMethods = false;
|
||||||
|
|
||||||
|
if(isDocker()){
|
||||||
|
ini_set('mysql.connect_timeout', 300);
|
||||||
|
ini_set('default_socket_timeout', 300);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This class exists for making servers avaible, which have no mysqlnd, withouth cause a performance-issue for those who have the driver.
|
* This class exists for making servers avaible, which have no mysqlnd, withouth cause a performance-issue for those who have the driver.
|
||||||
* It wouldn't be possible without Daan on https://stackoverflow.com/questions/31562359/workaround-for-mysqlnd-missing-driver
|
* It wouldn't be possible without Daan on https://stackoverflow.com/questions/31562359/workaround-for-mysqlnd-missing-driver
|
||||||
|
|
|
@ -960,7 +960,7 @@ if (typeof gtag !== \"function\") {
|
||||||
return $cache;
|
return $cache;
|
||||||
}
|
}
|
||||||
if (empty($videos_id)) {
|
if (empty($videos_id)) {
|
||||||
_error_log("User::canWatchVideo Video is empty ({$videos_id})");
|
_error_log("User::canWatchVideo Video is empty ({$videos_id}) ".json_encode(debug_backtrace()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue