views.view.poll_admin.yml config missing cache settings

Created on 5 May 2025, about 1 month ago

Problem/Motivation

The views.view.poll_admin.yml configuration file in the module does not define a cache: setting. This means the View uses no caching at all, which negatively impacts performance and bypasses Drupal’s intelligent cache invalidation system.

Expected behaviour

The View configuration should define caching using cache: type: tag, which is the recommended default in Drupal 9 and 10. This enables automatic invalidation when messages or related entities are updated.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland alorenc Wolsztyn, πŸ‡΅πŸ‡±

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

Comments & Activities

  • Issue created by @alorenc
  • @alorenc opened merge request.
  • πŸ‡΅πŸ‡±Poland alorenc Wolsztyn, πŸ‡΅πŸ‡±
  • πŸ‡§πŸ‡ͺBelgium BramDriesen Belgium πŸ‡§πŸ‡ͺ

    I didn't test nor investigate this yet, but noticed the cache_metadata is set to -1. Doesn't that effect this as well.

    Also need to check how the Drupal core node view for example does caching, as this is just an admin overview.

    Will leave it at NR for now. Thanks for the report and merge request @alorenc

Production build 0.71.5 2024