-
Notifications
You must be signed in to change notification settings - Fork 157
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
Clear out cache instead of rebuilding it when site data changes #829
Merged
+18
−12
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f569120
Merge branch 'develop' into trunk for 1.6.0
helen 54954f4
Merge branch 'develop' into trunk
helen 5ca3627
Merge branch 'develop' into trunk
helen 3f1ff28
Merge branch 'develop' into trunk for 1.6.1
helen 1ec6bc8
Merge branch 'develop' into trunk
jeffpaul 7171453
Merge branch 'develop' into trunk
jeffpaul 7eba873
Merge branch 'develop' into trunk
jeffpaul 8a48325
Merge branch 'develop' into trunk
jeffpaul 0aae236
Merge branch 'develop' into trunk for 1.6.5
helen 4a2db62
Merge branch 'develop' into trunk for 1.6.6
helen e59e6fa
Merge branch 'develop' into trunk
helen 2a958c1
Merge branch 'develop' into trunk
11002a2
Clear out cache instead of rebuilding it when site data changes
34bf242
Merge branch 'trunk' into fix/site-creation-timeouts
d031263
Only delete a transient if we have a proper last_changed_sites value.…
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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dkotter In case of just-set
$last_changed
, bothdelete_transient
functions will address non-existing transients, are we sure this is ok?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cadic I don't think it causes any issues to try deleting a transient that doesn't exist but I've modified this slightly so we only delete these transients if we have a proper
last_changed_sites
value. Otherwise the transients should either not exist (so they don't need deleted) or they exist with a differentlast_changed_sites
value and will now be invalid since we've updated that value