We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36e1c1d commit 80e57f7Copy full SHA for 80e57f7
1 file changed
src/purge.cls.php
@@ -348,7 +348,26 @@ private function _purge_all_localres( $silence = false ) {
348
}
349
350
/**
351
- * Alerts LiteSpeed Web Server to purge pages.
+ * Alerts LiteSpeed Web Server to purge CSS/JS entries. Public function.
352
+ *
353
+ * @since 7.6
354
+ * @access public
355
+ */
356
+ public function purge_all_cssjs( $silence = false, $reason = false ) {
357
+ if( $reason ){
358
+ self::cls()->_purge_all_cssjs($silence);
359
+
360
+ if ( $reason ) {
361
+ self::debug('Cleared CSS/JS. Reason: ' . $reason);
362
+ }
363
364
+ else{
365
+ self::debug('Cannot clear CSS/JS. Reason is not added.');
366
367
368
369
+ /**
370
+ * Alerts LiteSpeed Web Server to purge CSS/JS entries. Private function.
371
*
372
* @since 1.2.2
373
* @access private
0 commit comments