Skip to content
Draft
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
21 changes: 20 additions & 1 deletion src/purge.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,26 @@ private function _purge_all_localres( $silence = false ) {
}

/**
* Alerts LiteSpeed Web Server to purge pages.
* Alerts LiteSpeed Web Server to purge CSS/JS entries. Public function.
*
* @since 7.6
* @access public
*/
public function purge_all_cssjs( $silence = false, $reason = false ) {
if( $reason ){
self::cls()->_purge_all_cssjs($silence);

if ( $reason ) {
self::debug('Cleared CSS/JS. Reason: ' . $reason);
}
}
else{
self::debug('Cannot clear CSS/JS. Reason is not added.');
}
}

/**
* Alerts LiteSpeed Web Server to purge CSS/JS entries. Private function.
*
* @since 1.2.2
* @access private
Expand Down