Avoid resolving membership plans twice when compiling products

クローズ
#1,911 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@superdav42 がすでに取り組んでいます。

2026年10月8日 から。

  • #1912 @superdav42 による — オープン

評価

この issue はまだ評価されていません。

説明

origin:interactive status:in-review

Problem and implementation

inc/models/class-membership.php, Membership::get_all_products(), resolves the plan into $product and then resolves it again when building the product entry. Reuse $product, preserving the missing-plan branch, quantities and add-on order. Do not introduce persistent model caching.

Verification

PHP syntax and configured focused PHPCS; local semantic probes covering missing plans, product identity, add-ons and plan mutation between calls. In authenticated local PHP replay, Xdebug plan resolutions fall from 212 to 108 and model lookups from 220 to 116 on the statistics dashboard, with identical serialized MRR output. Profiling helpers are disposable and are not proposed as repository infrastructure. Full PHPUnit has not been run.

This verified change is being submitted interactively in a PR; no worker dispatch or deployment is requested.


aidevops.sh v3.34.13 plugin for OpenCode v1.18.31 with gpt-6.1-sol spent 12h 22m and 1,099,072 tokens on this with the user in an interactive session.

主要言語
PHP
スター
218
フォーク
87
平均マージ
1日 3時間
マージ済み PR(30日)
101

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Ultimate-Multisite/ultimate-multisite のほかの issue

Ultimate-Multisite/ultimate-multisite の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。