Skip to content

saving one entry, start to generate all entries for all languages #891

@The-Dan-Main

Description

@The-Dan-Main

Bug Report

When ever i save one entry, in my queue is can see that i wants to generate Blitz cache for all entries on all pages instead of just updating the one i saved.

Setting:
Clear the cache and regenerate in a queue job

Once i change this to "Clear the cache, regenerate manually or organically", then the issue is gone. But this is really not efficiant. Is it because this entry is referenced in the globals, which are used to build a navigation? If so, it should perhaps listen to changes like title/slug/id, as those can be referenced.

Diagnostics Report

Application Info

  • PHP version: 8.5.5
  • Craft edition & version: Pro 5.9.18
  • Database driver & version: MariaDB 11.8.6

Installed Plugins

  • Blitz: 5.12.8
  • CKEditor: 5.4.0
  • DigitalOcean Spaces Filesystem: 3.2.1
  • Feed Me: 6.11.0
  • Freeform: 5.15.2
  • Google Maps: 5.2.0
  • Hyper: 2.3.3
  • Microsoft 365 Mail Transport by Think: v1.0.2
  • SEO: 5.0.0
  • Sprig: 3.7.2
  • Table Maker: 5.0.8
  • Vite: 5.0.1

Loaded Modules

  • codeeditor: nystudio107\codeeditor\CodeEditor
  • sprig-core: putyourlightson\sprig\Sprig
  • verbb-base: verbb\base\Base

Blitz Plugin Settings

{
    "debug": false,
    "hintsEnabled": false,
    "cachingEnabled": true,
    "refreshCacheEnabled": true,
    "refreshMode": 1,
    "includedUriPatterns": [
        {
            "enabled": "1",
            "siteId": "",
            "uriPattern": ".*"
        }
    ],
    "excludedUriPatterns": [],
    "cacheStorageType": "putyourlightson\\blitz\\drivers\\storage\\FileStorage",
    "cacheStorageSettings": {
        "folderPath": "@webroot\/cache\/blitz",
        "compressCachedValues": "1"
    },
    "cacheStorageTypes": [],
    "cacheGeneratorType": "putyourlightson\\blitz\\drivers\\generators\\HttpGenerator",
    "cacheGeneratorSettings": {
        "concurrency": "3",
        "useBasicAuth": "",
        "username": "",
        "password": ""
    },
    "cacheGeneratorTypes": [],
    "customSiteUris": [],
    "cachePurgerType": "putyourlightson\\blitz\\drivers\\purgers\\DummyPurger",
    "cachePurgerSettings": [],
    "cachePurgerTypes": [],
    "deployerType": "putyourlightson\\blitz\\drivers\\deployers\\DummyDeployer",
    "deployerSettings": [],
    "deployerTypes": [],
    "ssiEnabled": false,
    "ssiTagFormat": "<!--#include virtual=\"{uri}\" -->",
    "detectSsiEnabled": true,
    "esiEnabled": false,
    "cachedIncludePathParam": "p",
    "onlyCacheLowercaseUris": false,
    "cacheActionRequests": false,
    "queryStringCaching": 0,
    "includedQueryStringParams": [
        {
            "enabled": "1",
            "siteId": "",
            "queryStringParam": ".*"
        }
    ],
    "excludedQueryStringParams": [
        {
            "enabled": "1",
            "siteId": "",
            "queryStringParam": "gclid"
        },
        {
            "enabled": "1",
            "siteId": "",
            "queryStringParam": "fbclid"
        }
    ],
    "apiKey": "",
    "generatePagesWithQueryStringParams": true,
    "purgeAssetImagesWhenChanged": true,
    "refreshCacheAutomaticallyForGlobals": true,
    "refreshCacheWhenElementMovedInStructure": true,
    "refreshCacheWhenElementSavedUnchanged": false,
    "refreshCacheWhenElementSavedNotLive": false,
    "refreshExpiredCacheAfterVisit": true,
    "cacheNonHtmlResponses": false,
    "trackElements": true,
    "trackElementQueries": true,
    "excludedTrackedElementQueryParams": [],
    "cacheDuration": null,
    "nonCacheableElementTypes": [],
    "sourceIdAttributes": [],
    "liveStatuses": [],
    "integrations": [
        "putyourlightson\\blitz\\drivers\\integrations\\CommerceIntegration",
        "putyourlightson\\blitz\\drivers\\integrations\\DatastarIntegration",
        "putyourlightson\\blitz\\drivers\\integrations\\SeomaticIntegration"
    ],
    "defaultCacheControlHeader": "no-store",
    "cacheControlHeader": "public, s-maxage=31536000, max-age=0",
    "cacheControlHeaderExpired": "public, s-maxage=5, max-age=0",
    "sendPoweredByHeader": true,
    "outputComments": true,
    "refreshCacheJobPriority": 10,
    "driverJobBatchSize": 100,
    "driverJobPriority": 100,
    "queueJobTtr": 300,
    "maxRetryAttempts": 10,
    "maxUriLength": 2048,
    "maxUriIndexLength": 767,
    "mutexTimeout": 1,
    "commands": [],
    "injectScriptEvent": "DOMContentLoaded",
    "injectScriptPosition": 3
}

Recommendations

  • ❌ Image transforms are configured not to be generated before page load.
  • ❌ One or more globals exist and refreshCacheAutomaticallyForGlobals is enabled.
  • ❌ Queue jobs are configured to run automatically via web requests.
  • ❌ The blitz/cache/refresh-expired console command has not been executed within the past 24 hours.
  • ✅ Blitz is configured not to refresh cached pages when an element is saved but unchanged.
  • ✅ Blitz is configured not to refresh cached pages when an element is saved but not live.
  • ✅ The @web alias is explicitly defined.
  • ✅ The Async Queue plugin is not installed or enabled.

Site Tracking [1]

  • Tracked Pages: 186
  • Tracked Includes: 0
  • Tracked Actions: 0
  • Tracked Query String Params: 0
  • Tracked Elements: 2’440
    • craft\elements\Entry (nested): 1’301
    • craft\elements\Asset: 705
    • craft\elements\Entry: 408
    • craft\elements\Category: 24
    • craft\elements\User: 2
  • Tracked Element Queries: 378
    • craft\elements\Entry: 217
    • craft\elements\User: 159
    • craft\elements\Category: 2
  • Tracked Tags: 0

Site Tracking [2]

  • Tracked Pages: 77
  • Tracked Includes: 0
  • Tracked Actions: 0
  • Tracked Query String Params: 0
  • Tracked Elements: 1’567
    • craft\elements\Entry (nested): 765
    • craft\elements\Asset: 451
    • craft\elements\Entry: 325
    • craft\elements\Category: 24
    • craft\elements\User: 2
  • Tracked Element Queries: 91
    • craft\elements\User: 52
    • craft\elements\Entry: 37
    • craft\elements\Category: 2
  • Tracked Tags: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions