Skip to content

Avoid ram cache to be changed before save #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jamadam
Copy link
Contributor

@jamadam jamadam commented Apr 3, 2025

Using D::OD::Driver::Cache::RAM for Recipe breaks a test at https://github.com/sixapart/data-objectdriver/blob/0.23/t/02-basic.t#L205

Without cache, after $obj->replace is failed, Recipe->lookup gets original columns from DB. However, with RAM cache, It gets the new columns despite the failure because RAM cache stores a reference to the original object.

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.

1 participant