Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ This package implements the following commands:

### wp cache

Manage the object cache.
Manipulate the WP Object Cache object.

~~~
wp cache
~~~

Use a persistent object cache drop-in to persist cache values between requests.
By default, the WP Object Cache exists in PHP memory for the length of the
request (and is emptied at the end). Use a persistent object cache drop-in
to persist the object cache between requests.

[Read the codex article](https://codex.wordpress.org/Class_Reference/WP_Object_Cache)
for more detail.

**EXAMPLES**

Expand All @@ -35,12 +40,16 @@ Use a persistent object cache drop-in to persist cache values between requests.

### wp transient

Manage transients.
Manipulate the WordPress Transient Cache.

~~~
wp transient
~~~

By default, the transient cache uses the WordPress database to persist values
between requests. When a persistent object cache drop-in is installed, the
transient cache also uses the WordPress Object Cache.

**EXAMPLES**

# Set transient.
Expand Down
9 changes: 6 additions & 3 deletions src/Cache_Command.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?php

/**
* Manipulates the WP Object Cache.
* Manipulate the WP Object Cache object.
*
* By default, the WP Object Cache exists in PHP memory for the length of the
* request (and is emptied at the end). Use a persistent object cache drop-in
* to persist the object cache between requests.
*
* Use a persistent object cache drop-in to persist cache values between requests.
* [WP Object Cache](https://codex.wordpress.org/Class_Reference/WP_Object_Cache)
* [Read the codex article](https://codex.wordpress.org/Class_Reference/WP_Object_Cache)
* for more detail.
*
* ## EXAMPLES
*
Expand Down
6 changes: 5 additions & 1 deletion src/Transient_Command.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php

/**
* Manage WordPress transient and standardized way of storing cached data in the database temporarily base.
* Manipulate the WordPress Transient Cache.
*
* By default, the transient cache uses the WordPress database to persist values
* between requests. When a persistent object cache drop-in is installed, the
* transient cache also uses the WordPress Object Cache.
*
* ## EXAMPLES
*
Expand Down