Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 107 additions & 61 deletions CHANGELOG.md

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,31 @@ Every new check **must** have test fixtures:
- **Functions**: One responsibility per function
- **Variables**: Use descriptive names (`FINDING_COUNT` not `fc`)

### Updating the Cache-Primed Hooks Dictionary

The **cache-primed hooks dictionary** (`WP_CACHE_PRIMED_HOOKS`) is located in `dist/bin/ai-triage.py`. This dictionary maps WordPress hooks to object types and is critical for reducing false positives in N+1 detection.

#### Steps to Update:
1. **Identify New Hooks**:
- Look for WordPress hooks that pre-cache metadata for objects (e.g., `user`, `post`, `comment`).
2. **Add to the Dictionary**:
- Open `dist/bin/ai-triage.py` and add the new hook to the `WP_CACHE_PRIMED_HOOKS` dictionary.
3. **Test Your Changes**:
- Run the test suite to ensure no regressions.
- Add new test cases if necessary.
4. **Submit a Pull Request**:
- Include a clear description of the added hooks and their purpose.

#### Example:
```python
WP_CACHE_PRIMED_HOOKS = {
'show_user_profile': 'user',
'edit_user_profile': 'user',
'add_meta_boxes': 'post',
# Add new hooks here
}
```

---

## 🧪 Testing
Expand Down
44 changes: 0 additions & 44 deletions PROJECT/1-INBOX/DEV-LOCAL-BROWSER.md

This file was deleted.

89 changes: 0 additions & 89 deletions PROJECT/1-INBOX/FIX-CICD.md

This file was deleted.

93 changes: 0 additions & 93 deletions PROJECT/1-INBOX/MARKETING-HOME-EDITS-2026-01-14.md

This file was deleted.

Loading
Loading