Eliminated the cache when update agents
Former-commit-id: 4e52c0f85ae68a5658c8cd40e72064b48c644934
This commit is contained in:
parent
88f1f16a5a
commit
9db9d1644c
|
@ -1067,7 +1067,7 @@ if ($id_agente) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$agent = db_get_row('tagente', 'id_agente', $id_agente);
|
||||
$agent = db_get_row('tagente', 'id_agente', $id_agente, false, false);
|
||||
if (empty($agent)) {
|
||||
// Close out the page
|
||||
ui_print_error_message(__('There was a problem loading the agent'));
|
||||
|
|
|
@ -205,7 +205,7 @@ function mysql_db_get_value($field, $table, $field_search=1, $condition=1, $sear
|
|||
*
|
||||
* @return mixed The first row of a database query or false.
|
||||
*/
|
||||
function mysql_db_get_row($table, $field_search, $condition, $fields=false)
|
||||
function mysql_db_get_row($table, $field_search, $condition, $fields=false, $cache=true)
|
||||
{
|
||||
if (empty($fields)) {
|
||||
$fields = '*';
|
||||
|
@ -243,7 +243,7 @@ function mysql_db_get_row($table, $field_search, $condition, $fields=false)
|
|||
);
|
||||
}
|
||||
|
||||
$result = db_get_all_rows_sql($sql);
|
||||
$result = db_get_all_rows_sql($sql, false, $cache);
|
||||
|
||||
if ($result === false) {
|
||||
return false;
|
||||
|
|
|
@ -421,13 +421,13 @@ function db_get_row_sql($sql, $search_history_db=false)
|
|||
*
|
||||
* @return mixed The first row of a database query or false.
|
||||
*/
|
||||
function db_get_row($table, $field_search, $condition, $fields=false)
|
||||
function db_get_row($table, $field_search, $condition, $fields=false, $cache=true)
|
||||
{
|
||||
global $config;
|
||||
|
||||
switch ($config['dbtype']) {
|
||||
case 'mysql':
|
||||
return mysql_db_get_row($table, $field_search, $condition, $fields);
|
||||
return mysql_db_get_row($table, $field_search, $condition, $fields, $cache);
|
||||
|
||||
break;
|
||||
case 'postgresql':
|
||||
|
|
Loading…
Reference in New Issue