Mobile detect and redis

Created on 4 February 2025, 2 months ago

Problem/Motivation

I am not 100% sure but I think Redis does not work properly with this module.
I have page which shows on desktop the mobile version, and I am using redis.
Is there a fix for this issue? So a block which should only be visible on mobile is shown on desktop.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ’ฌ Support request
Status

Active

Version

3.0

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ฎFinland anaconda777

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

Comments & Activities

  • Issue created by @anaconda777
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium nonom Brussels

    The issue probably has to do with how Redis caching works together with Mobile Detect.

    • An user from a mobile device triggers a version of the page that Redis saves.
    • Then another user, even if theyโ€™re on desktop, might get that same mobile version.

    So Redis ends up caching just one version of the page, without knowing if it was meant for desktop or mobile.

Production build 0.71.5 2024