mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Now the vc item's cache expires when the item is updated
This commit is contained in:
parent
f8a0fc67f9
commit
fb8bc48d64
@ -1073,6 +1073,16 @@ switch ($action) {
|
||||
['id' => $id_element]
|
||||
);
|
||||
|
||||
// Invalidate the item's cache.
|
||||
if ($result !== false && $result > 0) {
|
||||
db_process_sql_delete(
|
||||
'tvisual_console_elements_cache',
|
||||
[
|
||||
'vc_item_id' => (int) $id_element,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$return_val = [];
|
||||
$return_val['correct'] = (int) $result;
|
||||
$return_val['new_line'] = $new_line;
|
||||
|
Loading…
x
Reference in New Issue
Block a user