Skip to content

Commit 392e680

Browse files
committed
Merge branch 'master' into add/transient-list
2 parents 7b8ba1f + 9e7a786 commit 392e680

File tree

4 files changed

+528
-91
lines changed

4 files changed

+528
-91
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,21 @@ network|site cache, please see docs for `wp transient`.
403403
$ wp transient delete --expired
404404
Success: 12 expired transients deleted from the database.
405405

406+
# Delete expired site transients.
407+
$ wp transient delete --expired --network
408+
Success: 1 expired transient deleted from the database.
409+
406410
# Delete all transients.
407411
$ wp transient delete --all
408412
Success: 14 transients deleted from the database.
409413

414+
# Delete all site transients.
415+
$ wp transient delete --all --network
416+
Success: 2 transients deleted from the database.
417+
418+
# Delete all transients in a multsite.
419+
$ wp transient delete --all --network && wp site list --field=url | xargs -n1 -I % wp --url=% transient delete --all
420+
410421

411422

412423
### wp transient get
@@ -496,15 +507,15 @@ wp transient type
496507
~~~
497508

498509
Indicates whether the transients API is using an object cache or the
499-
options table.
510+
database.
500511

501512
For a more complete explanation of the transient cache, including the
502513
network|site cache, please see docs for `wp transient`.
503514

504515
**EXAMPLES**
505516

506517
$ wp transient type
507-
Transients are saved to the wp_options table.
518+
Transients are saved to the database.
508519

509520
## Installing
510521

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require-dev": {
1818
"wp-cli/entity-command": "^1.3 || ^2",
19-
"wp-cli/wp-cli-tests": "^2.0.7"
19+
"wp-cli/wp-cli-tests": "^2.0.11"
2020
},
2121
"config": {
2222
"process-timeout": 7200,

0 commit comments

Comments
 (0)