Skip to content

Cache and re-use a lineitem? #56

Open
@cmcfadden

Description

@cmcfadden

Curious to sanity check something before doing a fork.

We have an app that will create multiple lineitems, and then may be updating them frequently. Rather than going back to the LMS continually to fetch that info, I'd like to just cache those in our app.

Right now, the AGS put_grade method will always reload a lineitem, unless it was the claim/endpoint.

I was thinking of adding a new conditional in put_grade line 22

} else if($lineitem !== null && !empty($lineitem->get_id()) {
$score_url = $lineitem->get_id();
}

Anyone see a problem with doing that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions