Introduce method-level caching for department reports to enhance performance

- Wrap report calculation logic in `methodCacheWithParameters` for 2-minute caching.
- Standardize reusable caching logic in `db_object_t` trait.
- Refactor query-based methods to integrate caching and improve maintainability.
This commit is contained in:
Jeppe Bundgaard
2026-01-22 12:18:39 +01:00
parent d58fa69560
commit e0e479a15d
4 changed files with 233 additions and 186 deletions
-1
View File
@@ -397,5 +397,4 @@ class redis implements redis_i
// Get multiple keys from Redis
return $this->redis->mget($array_map);
}
}