Skip to content

Extract throttle engine into separate classes for Phase 2 #12

@mrtwebdesign

Description

@mrtwebdesign

Source: PR #4 review (nice-to-have)

Problem

The single file is ~760 lines after Phase 1 AS throttle additions. Fine for now, but Phase 2 (db.php drop-in) will push it further.

Suggested structure

  • class-hcqg-load-monitor.php — metric probing, level evaluation, hysteresis
  • class-hcqg-throttle-engine.php — AS filter logic, policy application, state persistence
  • hypercart-query-guard.php — bootstrap, context detection, session timeout, kill capture

When

Trigger this extraction when Phase 2 work begins or when the file crosses ~1000 lines, whichever comes first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions