@paul121 discovered this in https://www.drupal.org/project/farm/issues/3241078#comment-14260404 β
This has led me to discover another more general bug re: caching... logs that are "done" with a timestamp in the future add another level of complication here. This is especially important for requests via the API. Consider the following:
- Create an asset.
- Create a movement log in the future (5 minutes) with the status set as "done".
- View the asset's JSONAPI resource (this will cache the asset's resource in the
jsonapi_normalization
cache bin)- Come back in 5 minutes and load the JSONAPI resource. Unchanged.
- Go to the log edit page and re-save it without making changes. JSONAPI resource is updated.
Not sure how important this is. It seems like it *could be* semi-straightforward to support this... Drupal has the concept of cache tags and the cache "max-age". *In theory*, when a planned log is created, we could set the asset's cache max-age to be the timestamp of that log. That way anything cached from the asset (and respecting its max-age) would be rebuilt appropriately. Of course, I'm not sure if we're able to specify an individual asset's cache max age... gotta sign off. This would probably be best to tackle in a separate issue.
TBD
TBD
None.
Fix caching bug described above.
None.
Active
3.0
Farm Assets
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.