-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New helper functions, wp_cache_*_salted #8728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 31 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
e440510
Replace direct cache operations with query-specific functions
spacedmonkey 43f7a9e
Check key exists
spacedmonkey d13fe90
Check values.
spacedmonkey 015e4f6
Change wp_cache_set_multiple_query_data
spacedmonkey 17348ec
Learn to spell, Jonny
spacedmonkey e6440f1
Replace `wp_cache_set` with `wp_cache_set_query_data` in `class-wp-qu…
spacedmonkey f90fdbb
Refactor cache key handling in `class-wp-query` for improved clarity …
spacedmonkey d6eba79
Add expiration support to `wp_cache_set_query_data` and `wp_cache_set…
spacedmonkey 552e6d5
Merge branch 'trunk' into fix/last-updated
spacedmonkey 71578aa
Move query cache functions to `cache-compat.php` for better compatibi…
spacedmonkey 39e6880
Update tests/phpunit/tests/functions/wpCacheSetQueryData.php
spacedmonkey f017cc0
Fix comments on tests
spacedmonkey 6869363
Apply suggestions from code review
spacedmonkey 6387897
Merge branch 'trunk' into fix/last-updated
spacedmonkey 49cc290
Refactor `class-wp-user-query` to move cache timestamp handling to a …
spacedmonkey 11605cf
Refactor `class-wp-user-query` to simplify `$blog_id` initialization …
spacedmonkey 199703a
Refactor `class-wp-user-query` to simplify `$blog_id` initialization …
spacedmonkey c7b5e4d
Clarify documentation for `last_changed` parameter in query cache fun…
spacedmonkey 0675270
Update src/wp-includes/cache-compat.php
jonnynews 0c295ed
Merge branch 'trunk' into fix/last-updated
spacedmonkey 20ea1fa
Rename query cache functions to use `salted` naming convention, updat…
spacedmonkey 6807090
Refactor `last_changed` handling in `WP_Query` to use array structure…
spacedmonkey 5d61bf7
Fix conditional logic for `isset` checks in query cache validation fo…
spacedmonkey e3b2eb4
Refactor query cache tests to replace `last_changed` with `salt` for …
spacedmonkey d1248c6
Update PHPUnit test to expect `salt` instead of `last_changed` for qu…
spacedmonkey 42b3dee
Refactor PHPUnit tests for query cache to use `salted` naming convent…
spacedmonkey 38a28a2
Feedback on @peterwilsoncc.
spacedmonkey bd142f1
Docs standards fixes.
peterwilsoncc 12a45c7
API consistency: return success/failure results of setting cache.
peterwilsoncc 238c41e
Apply suggestions from code review
peterwilsoncc df2dabf
Merge branch 'trunk' into fix/last-updated
peterwilsoncc 45909c6
Update src/wp-includes/cache-compat.php
peterwilsoncc 9b390e1
Merge branch 'trunk' into fix/last-updated
spacedmonkey 310b0de
Merge branch 'trunk' into fix/last-updated
spacedmonkey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.