Photoswipe requires Dynamic Page Cache without adding it as a dependency

Created on 8 December 2023, about 1 year ago
Updated 24 January 2024, 11 months ago

Problem/Motivation

Photoswipe and Photoswipe Dynamic Caption seem to rely on the Dynamic Page Cache module being enabled without specifying it as a dependencies.

With dynamic page cache disabled, the configuration pages display an error: You have requested a non-existent service "cache.dynamic_page_cache"

Steps to reproduce

  1. Make sure Dynamic Page Cache is uninstalled
  2. Install Photoswipe and Photoswipe Dynamic Caption
  3. View the config page for either module

Proposed resolution

Either add Dynamic Page Cache as a dependency or, better yet, not require it at all and detect if it has been enabled before trying to use it.

=> Find the correct clear cache command in these lines: https://git.drupalcode.org/project/photoswipe/-/blob/5.x/src/Form/Photos... <=

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇦🇺Australia imclean Tasmania

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