Skip to content

Commit

Permalink
Update purge-varnish-cache.php
Browse files Browse the repository at this point in the history
  • Loading branch information
greos committed Mar 15, 2022
1 parent 0124174 commit e0d575a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions purge-varnish-cache.php
Expand Up @@ -21,7 +21,7 @@ public static function init()
add_action('save_post_page', [static::class, 'onPostSaveAndUpdate']);
add_action('save_post_weekly_issue', [static::class, 'onPostSaveAndUpdate']);

// // Add action to post status transition to purge varnish cache. This may be overkill in some cases. Hence it has been disabled unless you need it.
// // Add action to post status transition to purge varnish cache. This may be overkill in some cases and could potentially cause conflicts with other plugins. Hence it has been disabled unless you need it.
// add_action('transition_post_status', [static::class, 'onPostStatusTransition'], 10, 3);
}

Expand Down Expand Up @@ -53,7 +53,7 @@ public static function onPostStatusTransition($newStatus, $oldStatus, $post)
'method' => $purge_method
);

$debug_mode = true;
$debug_mode = false;
$debug_log_file = 'curl_status_log.txt';

// wp_remote_request is used to PURGE or BAN varnish cache
Expand Down

0 comments on commit e0d575a

Please sign in to comment.