$rule = DBA::selectFirst('advancedcontentfilter_rules', [], ['id' => DBA::lastInsertId()]);
+ DI::cache()->delete('rules_' . local_user());
+
return json_encode(['message' => DI::l10n()->t('Rule successfully added'), 'rule' => $rule]);
}
throw new HTTPException\ServiceUnavailableException(DBA::errorMessage());
}
+ DI::cache()->delete('rules_' . local_user());
+
return json_encode(['message' => DI::l10n()->t('Rule successfully updated')]);
}
throw new HTTPException\ServiceUnavailableException(DBA::errorMessage());
}
+ DI::cache()->delete('rules_' . local_user());
+
return json_encode(['message' => DI::l10n()->t('Rule successfully deleted')]);
}