Skip to content

Commit

Permalink
Merge pull request #1498 from danskernesdigitalebibliotek/event-views…
Browse files Browse the repository at this point in the history
…-time-tags-cache

Cache event views based on time and cache tags
  • Loading branch information
kasperg authored Aug 21, 2024
2 parents 748615c + c281acd commit d419993
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@
"3451613: Start date of weekly reccurring event jumps incorrectly": "https://git.drupalcode.org/project/recurring_events/-/commit/581c53dd1b0b067a8b6454d76cc0187887f7b187.patch",
"3461740: Fatal error when using 'Event series start date' filter in views": "https://www.drupal.org/files/issues/2024-07-16/reccuring_events_event_start_date.patch"
},
"drupal/search_api": {
"3414725: Tag- and time-based views cache plugin": "https://git.drupalcode.org/issue/search_api-3414725/-/commit/d84c193ab35991464e77423d0ec33f2623f24f0d.patch"
},
"drupal/theme_permission": {
"3105637: Edit, install and uninstall permission": "https://www.drupal.org/files/issues/2024-02-01/theme-permission-edit-install-uninstall-3105637-7.patch",
"3458263: WSOD error fails on Drupal 10.3+": "https://www.drupal.org/files/issues/2024-07-01/theme_permssion-d10_3_d11.patch"
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions config/sync/views.view.events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,12 @@ display:
options:
perm: 'access content'
cache:
type: none
options: { }
type: search_api_time_tag
options:
results_lifespan: '3600'
results_lifespan_custom: '0'
output_lifespan: '3600'
output_lifespan_custom: '0'
empty: { }
sorts:
date:
Expand Down Expand Up @@ -308,6 +312,8 @@ display:
- url.query_args
- user.permissions
tags:
- 'config:facets.facet.branch'
- 'config:facets.facet.event_categories'
- 'config:search_api.index.events'
- 'search_api_list:events'
related:
Expand Down

0 comments on commit d419993

Please sign in to comment.