Change salsa_donate_page_total_donation_amount() to use a raw salsa query and add API to update cache.

Comments

Berdir created an issue. See original summary.

berdir’s picture

Status: Active » Needs review
StatusFileSize
new4.32 KB

This uses salsa_api() which is about 3x faster than the previous entity query based approach because we load a lot less data and avoid writing all those elements to the cache.

  • Berdir committed 88e9026 on 7.x-1.x
    Issue #2929143 by Berdir: Calculating the total donation amount is slow...
berdir’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.