Skip to content

Commit 467cea6

Browse files
committed
Correct CLEAR_SETTINGS_CACHE call
Sends the signal to clear the settings cache as an event, prepended with MESSAGE so the backend handles it as such.
1 parent f335d83 commit 467cea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function setting($field, $hostname=null, $new_value = "old\0old", $clearSettings
5151
// connected to the backend, the only known instance is in db_update.php
5252
// and those settings don't affect anything but MythWeb.
5353
if ($clearSettingsCache)
54-
MythBackend::find()->sendCommand('CLEAR_SETTINGS_CACHE');
54+
MythBackend::find()->sendCommand(array('MESSAGE', 'CLEAR_SETTINGS_CACHE'));
5555
}
5656
// Not cached?
5757
elseif (!array_key_exists($field, $cache[$h])) {

0 commit comments

Comments
 (0)