[TASK] Only use one select to calculate page cache timeout