Bug description
When enabling background re-cache in a full-measure configuration, the Custom Invalidator Class does not fire, which is needed for marking the correct files for invalidation according to what we have configured in the Invalidator.
Also, I do not know if it is also intended for static:clear to also re-cache. If possible can we have a command that just invalidates the cache rather than clears it? We are wanting to configure a deployment setup where on deploy the cache is marked as invalid so that running the static warm command re-caches the files to save on resources.
How to reproduce
- Enable Full Measure Caching and register a custom Invalidator class.
- Add a condition where on save of an entry, it invalidates another URL.
- Enable background re-cache
- Save an entry.
- Check the relevant files have been invalidated.
Logs
Environment
EnvironmentLaravel Version: 12.62.0PHP Version: 8.3.30Composer Version: -Environment: localDebug Mode: ENABLEDMaintenance Mode: OFFTimezone: UTCLocale: enCacheConfig: CACHEDEvents: CACHEDRoutes: CACHEDViews: CACHEDDriversBroadcasting: logCache: memcachedDatabase: mysqlLogs: stack / singleMail: logQueue: databaseSession: fileStoragepublic/storage: NOT LINKEDStatamicAddons: 4License Key: Not setSites: 5Stache Watcher: DisabledStatic Caching: fullVersion: 6.24.2 PROStatamic Addonsaerni/font-awesome: 4.0.1statamic/eloquent-driver: 5.6.3statamic/importer: 2.1.0statamic/seo-pro: 7.7.0Statamic Eloquent DriverAddon Settings: eloquentAsset Containers: eloquentAssets: eloquentBlueprints: eloquentCollection Trees: eloquentCollections: eloquentEntries: eloquentFieldsets: eloquentForm Submissions: eloquentForms: eloquentGlobal Sets: eloquentGlobal Variables: eloquentNavigation Trees: eloquentNavigations: eloquentRevisions: eloquentSites: eloquentTaxonomies: eloquentTerms: eloquentTokens: eloquent
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
When enabling background re-cache in a full-measure configuration, the Custom Invalidator Class does not fire, which is needed for marking the correct files for invalidation according to what we have configured in the Invalidator.
Also, I do not know if it is also intended for
static:clearto also re-cache. If possible can we have a command that just invalidates the cache rather than clears it? We are wanting to configure a deployment setup where on deploy the cache is marked as invalid so that running the static warm command re-caches the files to save on resources.How to reproduce
Logs
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response