Skip to content

Commit 352cbe2

Browse files
committedApr 26, 2019
Change documention
1 parent e9ed07b commit 352cbe2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed
 

‎admin/class-phpredis-purger.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function purge_url( $url, $feed = true ) {
106106
/**
107107
* Filters the URL to be purged.
108108
*
109-
* @since 2.0.4
109+
* @since 2.1.0
110110
*
111111
* @param string $url URL to be purged.
112112
*/
@@ -136,7 +136,7 @@ public function purge_url( $url, $feed = true ) {
136136
*
137137
* Regardless of what key / suffix is being to store `$device_type` cache , it will be deleted.
138138
*
139-
* @since 2.0.4
139+
* @since 2.1.0
140140
*/
141141
if ( strpos( $_url_purge_base, '*' ) === false ) {
142142

@@ -198,9 +198,9 @@ public function custom_purge_urls() {
198198
$status = $this->delete_single_key( $purge_url );
199199

200200
if ( $status ) {
201-
$this->log( '- [phpredis] Purge URL | ' . $purge_url );
201+
$this->log( '- Purge URL | ' . $purge_url );
202202
} else {
203-
$this->log( '- [phpredis] Cache Not Found | ' . $purge_url, 'ERROR' );
203+
$this->log( '- Cache Not Found | ' . $purge_url, 'ERROR' );
204204
}
205205

206206
} else {
@@ -209,9 +209,9 @@ public function custom_purge_urls() {
209209
$status = $this->delete_keys_by_wildcard( $purge_url );
210210

211211
if ( $status ) {
212-
$this->log( '- [phpredis] Purge Wild Card URL | ' . $purge_url . ' | ' . $status . ' url purged' );
212+
$this->log( '- Purge Wild Card URL | ' . $purge_url . ' | ' . $status . ' url purged' );
213213
} else {
214-
$this->log( '- [phpredis] Cache Not Found | ' . $purge_url, 'ERROR' );
214+
$this->log( '- Cache Not Found | ' . $purge_url, 'ERROR' );
215215
}
216216

217217
}

‎admin/class-predis-purger.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -135,26 +135,26 @@ public function purge_url( $url, $feed = true ) {
135135
*
136136
* Regardless of what key / suffix is being to store `$device_type` cache , it will be deleted.
137137
*
138-
* @since 2.0.4
138+
* @since 2.1.0
139139
*/
140140
if ( strpos( $_url_purge_base, '*' ) === false ) {
141141

142142
$status = $this->delete_single_key( $_url_purge_base );
143143

144144
if ( $status ) {
145-
$this->log( '- [predis] Purge URL | ' . $_url_purge_base );
145+
$this->log( '- Purge URL | ' . $_url_purge_base );
146146
} else {
147-
$this->log( '- [predis] Cache Not Found | ' . $_url_purge_base, 'ERROR' );
147+
$this->log( '- Cache Not Found | ' . $_url_purge_base, 'ERROR' );
148148
}
149149

150150
} else {
151151

152152
$status = $this->delete_keys_by_wildcard( $_url_purge_base );
153153

154154
if ( $status ) {
155-
$this->log( '- [predis] Purge Wild Card URL | ' . $_url_purge_base . ' | ' . $status . ' url purged' );
155+
$this->log( '- Purge Wild Card URL | ' . $_url_purge_base . ' | ' . $status . ' url purged' );
156156
} else {
157-
$this->log( '- [predis] Cache Not Found | ' . $_url_purge_base, 'ERROR' );
157+
$this->log( '- Cache Not Found | ' . $_url_purge_base, 'ERROR' );
158158
}
159159

160160
}

0 commit comments

Comments
 (0)
Please sign in to comment.