cms icon indicating copy to clipboard operation
cms copied to clipboard

Blueprint data is not returned for new entries when using laravel caching

Open arturslo opened this issue 3 years ago • 1 comments

Bug description

API tree collection does not return blueprint data for new entries when using caching Blueprint data is not returned for new records in templates when using caching This happens if Laravel CACHE_DRIVER redis or file is used

How to reproduce

Call tree collection API route after new entry is added, it will return new entry with data but blueprint property is missing this only happens if you are using cache. I expect that new entries also provide blueprint data. missing_blueprint

Same issue in templates blueprint data is not returned for new records. Dump for new record, you can see blueprint data is missing. new_record Dump for exsisting record contains blueprint data. old_record

Logs

No response

Versions

Statamic 3.2.32 Pro / 3.2.33 Laravel 8.80.0 PHP 8.0.12 aryehraber/statamic-logbook 2.0.2 avalanche/audit-log dev-main avalanche/auth dev-main avalanche/available-support dev-main avalanche/contacts dev-main avalanche/events dev-main avalanche/guidelines-and-regulations dev-main avalanche/implemented-projects dev-main avalanche/news-resave dev-main avalanche/seo dev-main avalanche/subscriptions dev-main avalanche/uk-ak-portfolio dev-main avalanche/view-count dev-main

Installation

Starter Kit using via CLI

Additional details

statamic peak starter kit multisite setup (multiple languages) Collections uses multiple blueprints

arturslo avatar Feb 01 '22 12:02 arturslo

I can't reproduce this issue. Could you please provide a GitHub repo where this bug is reproducible?

jasonvarga avatar Apr 07 '22 20:04 jasonvarga

Closing as we can't recreate. Please feel free to open a new issue and explanation on how to recreate for v4 if it's still a problem.

jackmcdade avatar Sep 14 '23 16:09 jackmcdade