Skip to content

Use cache methods in WP_Theme.#5555

Open
spacedmonkey wants to merge 1 commit intoWordPress:trunkfrom
spacedmonkey:fix/59633
Open

Use cache methods in WP_Theme.#5555
spacedmonkey wants to merge 1 commit intoWordPress:trunkfrom
spacedmonkey:fix/59633

Conversation

@spacedmonkey
Copy link
Copy Markdown
Member

Trac ticket: https://core.trac.wordpress.org/ticket/59633


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Copy Markdown
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spacedmonkey While from a code perspective it looks like this change would make sense, the original fix intentionally didn't use these methods.

The reason for that is that the methods use the themes cache group, which is non persistent by default. Caching the pattern data in a non persistent cache group would have no benefits, since the data is only used once per request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants