Skip to content

Update database calls to newer ORM #30

@wernerkrauss

Description

@wernerkrauss

calling "canPublish" with Stock extension causes a lot of old, uncaced DB queries that add a huge load to websites if we have a few abandoned carts in ProductStockExtension::getTotalStockInCarts().

@forsdahl has some more modern code for that method.

In general it'd be good to update this module for more modern and faster ORM and maybe implement some caching mechanism for the current product's stock.

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