Skip to content

Conversation

@zspitzer
Copy link
Member

else if ( session instanceof StorageScopeImpl ) {
((StorageScopeImpl) session).setDirty();
}
session.touchAfterRequest( pc );
Copy link
Contributor

Choose a reason for hiding this comment

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

to be honest i don't like to call a listener method like "touchAfterRequest" outside the flow it should be called.
this method is called AFTER the request is finished, what if a implementation in the future clean up the request and remove data used by this request, it will then break after this function is executed. at best this limits what this method can do, at worst it corrupts the request.

@michaeloffner
Copy link
Contributor

do we really need this 2 functions? i think SessionCommit(immediately:true|false) is all we need.
Also this should be in against Lucee 7.1, not 7.0.

@michaeloffner michaeloffner changed the base branch from 7.0 to 7.1 December 1, 2025 14:39
@michaeloffner michaeloffner changed the base branch from 7.1 to 7.0 December 1, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants