Skip to content

Commit 8e2cf41

Browse files
committed
Merge branch 'develop'
# Conflicts: # changelog.md # inc/class-wrc-utility.php # wp-rest-cache.php
2 parents bab1fd7 + a1285a9 commit 8e2cf41

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### 1.0.2
2+
* More GHU Transient Changes
3+
14
#### 1.0.1
25
* Hotfix GHU cache clear sync
36

inc/class-wrc-utility.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,10 @@ public static function clear_cache_by( $column, $value ) {
2525
/**
2626
* Deletes all github api calls from the rest cache to operate with afragen/github-updater plugin
2727
*
28-
* @return false|int number of deleted cache rows
28+
* @return int number of deleted cache rows
2929
*/
30-
public static function clear_ghu_cache( $type = '' ) {
31-
// only run on plugins since that action happens first
32-
// if it runs on themes it will delete plugin cache twice
33-
if ( ! empty( $type ) && 'plugins' === $type ) {
34-
return self::clear_cache_by( 'rest_domain', 'https://api.github.com' );
35-
}
36-
37-
return false;
30+
public static function clear_ghu_cache() {
31+
return self::clear_cache_by( 'rest_domain', 'https://api.github.com' );
3832
}
3933

4034
}

0 commit comments

Comments
 (0)