Should all views be cached?

Created on 17 January 2024, 10 months ago

I love checklists and live to get all green check marks.

But this module suggests I should cache all-of-the-views, even views like watchdog and redirect_404. Should there be some exceptions to the rule?

Thanks, I appreciate all the work you all put into this module!

πŸ’¬ Support request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts

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

Comments & Activities

  • Issue created by @thejimbirch
  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    That's a great point @thejimbirch. Search API views using Facets, for example, should not be cached:

    If you're using Search API views, make sure to disable the views cache when using facets for that view.

    https://git.drupalcode.org/project/facets#configuration

    It's impossible for Site Audit to tell if a View should be cached or not, so maybe instead there could be a flagging option the user could click (like "Not cache-able"?) and the module would then ignore that view from getting checked, and get a green or grey check mark?

Production build 0.71.5 2024