给统计缓存加版本并绑定现有基础数据/课表失效标签,同时让演示数据、人员数据写入主动清理统计缓存;不改统计口径、筛选、导出或页面结构。
This commit is contained in:
@@ -437,6 +437,9 @@ public sealed class PersonnelController(
|
||||
await cache.RemoveByTagAsync(
|
||||
AppCacheTags.Timetables,
|
||||
cancellationToken);
|
||||
await cache.RemoveByTagAsync(
|
||||
AppCacheTags.Analytics,
|
||||
cancellationToken);
|
||||
return Created(string.Empty, new { id });
|
||||
}
|
||||
catch (DbUpdateException)
|
||||
@@ -453,6 +456,9 @@ public sealed class PersonnelController(
|
||||
await cache.RemoveByTagAsync(
|
||||
AppCacheTags.Timetables,
|
||||
cancellationToken);
|
||||
await cache.RemoveByTagAsync(
|
||||
AppCacheTags.Analytics,
|
||||
cancellationToken);
|
||||
return NoContent();
|
||||
}
|
||||
catch (DbUpdateException)
|
||||
|
||||
Reference in New Issue
Block a user