perf: Cache full/partial board data differently

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-02-16 18:41:47 +01:00
parent 29d21e05e8
commit b19b7794bc
2 changed files with 33 additions and 21 deletions

View File

@@ -65,7 +65,7 @@ class BoardApiController extends ApiController {
public function index($details = null) {
$modified = $this->request->getHeader('If-Modified-Since');
if ($modified === null || $modified === '') {
$boards = $this->boardService->findAll(0, $details);
$boards = $this->boardService->findAll(0, $details === true);
} else {
$date = Util::parseHTTPDate($modified);
if (!$date) {