Automattic / Automattic/jetpack

Widgets: Display WordPress Posts widget performance issues

Open
#16,253 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Extra Sidebar Widgets [Focus] Performance [Pri] Normal Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

The widget makes a network request for each page load. That request should be cached. Further, we should limit the response to the fields that we need.

See pau2Xa-1rU-p2 for context

#### Steps to reproduce the issue

See the post for more information.

#### What I expected

- Network calls to be cached
- Fields to be limited to what is necessary

#### What happened instead

- Network calls not cached
- All default fields returned

**Screenshots**
If applicable, add screenshots to help explain your problem.

Contributor guide

Open the contributing guide

Research direction

Start with the WordPress Posts widget and the linked context reference, then trace the request made during page loads. The work is done when that request is cached and its response is limited to the fields the widget needs.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.