Skip to content

ENH Use new DataList caching#692

Merged
emteknetnz merged 1 commit intosilverstripe:3from
creative-commoners:pulls/3/update-caching
Jul 2, 2025
Merged

ENH Use new DataList caching#692
emteknetnz merged 1 commit intosilverstripe:3from
creative-commoners:pulls/3/update-caching

Conversation

@GuySartorelli
Copy link
Copy Markdown
Member

Replaces deprecated DataObject::get_one() and DataObject::get_by_id() in favour of the new DataList query caching.

Tests have been updated to remove caching where it's not relevant to the test.

Important

Relies on silverstripe/silverstripe-framework#11768
DO NOT MERGE until that PR has been merged in

Issue

Comment thread tests/php/FolderTest.php
use SilverStripe\Assets\Storage\AssetStore;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\ORM\DataObject;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used

@GuySartorelli GuySartorelli force-pushed the pulls/3/update-caching branch from 7bed837 to 115ecfa Compare June 27, 2025 03:58
Replaces deprecated `DataObject::get_one()` and `DataObject::get_by_id()` in favour of the new DataList query caching.

Tests have been updated to remove caching where it's not relevant to the test.
@GuySartorelli GuySartorelli force-pushed the pulls/3/update-caching branch from 115ecfa to e8bd12e Compare June 29, 2025 23:42
@emteknetnz emteknetnz merged commit cdbabd0 into silverstripe:3 Jul 2, 2025
5 of 8 checks passed
@emteknetnz emteknetnz deleted the pulls/3/update-caching branch July 2, 2025 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants