• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

How to change query_cache_size?

Status
Not open for further replies.

tulipe

New Pleskian
Server operating system version
CentOS 7
Plesk version and microupdate number
Plesk Obsidian Web Pro Edition Version 18.0.41 Update #1
Hello, I want to increase the query_cache_size value.
So I made the request :
Code:
plesk db;
SET GLOBAL query_cache_size=16777216; (Query OK, 0 rows affected)
If I do SHOW VARIABLES LIKE '%query_cache%'; the new value has been taken into account.
Code:
+------------------------------+----------+
| Variable_name                | Value    |
+------------------------------+----------+
| query_cache_size             | 16777216
+------------------------------+----------+
However, if I restart mariadb service (service mariadb restart), the value is the old value which returns...
Code:
+------------------------------+----------+
| Variable_name                | Value    |
+------------------------------+----------+
| query_cache_size             | 1048576
+------------------------------+----------+
Do you have any idea please?
Thanks in advance
 
Status
Not open for further replies.
Back
Top