Skip to content

Commit 478c8dc

Browse files
Merge branch 'feat/remove-unused-purge_personal_urls' into develop
2 parents be5953d + 099dfa5 commit 478c8dc

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

admin/class-purger.php

-24
Original file line numberDiff line numberDiff line change
@@ -703,29 +703,6 @@ private function _purge_homepage() {
703703

704704
}
705705

706-
/**
707-
* Purge personal urls.
708-
*
709-
* @return bool
710-
*/
711-
private function _purge_personal_urls() {
712-
713-
global $nginx_helper_admin;
714-
715-
$this->log( __( 'Purging personal urls', 'nginx-helper' ) );
716-
717-
if ( isset( $nginx_helper_admin->options['purgeable_url']['urls'] ) ) {
718-
719-
foreach ( $nginx_helper_admin->options['purgeable_url']['urls'] as $url ) {
720-
$this->purge_url( $url, false );
721-
}
722-
} else {
723-
$this->log( '- ' . __( 'No personal urls available', 'nginx-helper' ) );
724-
}
725-
726-
return true;
727-
728-
}
729706

730707
/**
731708
* Purge post categories.
@@ -1140,7 +1117,6 @@ public function purge_them_all() {
11401117

11411118
$this->log( __( "Let's purge everything!", 'nginx-helper' ) );
11421119
$this->_purge_homepage();
1143-
$this->_purge_personal_urls();
11441120
$this->_purge_all_posts();
11451121
$this->_purge_all_taxonomies();
11461122
$this->_purge_all_date_archives();

0 commit comments

Comments
 (0)