ampproject / ampproject/amp-wp

Make amp-options an autoloaded option

Open
#3,287 4 comments 2 reactions 0 assignees View on GitHub
Enhancement Groomed P2 Performance Punted WS:Perf
Dominant language
PHP
Stars
1.8k
Forks
378
Avg merge
1d 15h
Merged PRs (30d)
10

Description

On accessing the frontend, there is a persistent query for the `amp-options` option:

Screen Shot 2019-09-17 at 22 25 04

Given that this option is always queried with each request, the option should be made autoloaded (part of `alloptions`).

Contributor guide

Open the contributing guide

Research direction

Start by searching the WordPress option registration for `amp-options` and reviewing how options enter `alloptions`. Reproduce or inspect the persistent frontend query, then verify that `amp-options` is autoloaded and no longer queried separately on each request.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.