VIssue when the view is using Cache tag based.

Created on 17 March 2025, 17 days ago

Problem/Motivation

Just noticed that there are some issues with the pager when the view is cached (I was using the view with the cache tag base setting on).

For me I had a simple view listing nodes with a pager using AJAX to avoid reloading the page. On first load, the pager contain only the first page in the pager, and it was also happening after multiple clicks across the pager sometimes, most often when pressing the same number multiple times. After some reload, if was showing multiple pages, the cache has definitely something wonky going on. I have not been able to trace the source of the issue.

There are many "new PagerDate" calls and it seemed that when loading the page, the code was executed twice, once where all values were set, and another where $time in setCurrentPage was NULL.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024