Yoast / Yoast/duplicate-post

Autoload show notice option

Open
#366 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
53
Forks
38
Avg merge
4d 8h
Merged PRs (30d)
1

Description

When I check which options are being requested during a page load, I see a "cache miss" for duplicate_post_show_notice quite often, because that option isn't autoloaded. I would suggest adding autoload to it or not requesting it as much.

I've been keeping track using my own AAA Option Optimizer plugin of which options get requested a lot but aren't autoloaded and on my test site, this option was the worst offender.

  • I've searched for any related issues and avoided creating a duplicate issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating where the duplicate_post_show_notice option is registered and requested during page loads. Check how its autoload setting is defined and trace the repeated requests; done means reducing the reported cache misses without changing the notice behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
performance
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.