Changeset 2446040
- Timestamp:
- 12/26/2020 12:49:22 AM (5 years ago)
- Location:
- remote-cache-purger/trunk
- Files:
-
- 3 edited
-
changelog.txt (modified) (2 diffs)
-
includes/queue.php (modified) (1 diff)
-
remote-cache-purger.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remote-cache-purger/trunk/changelog.txt
r2446015 r2446040 1 <<<<<<< .mine2 1 ## CHANGELOG 2 3 = 1.0.4.1 - 2020/12 = 4 * UPDATE: Display number of purged files 3 5 4 6 = 1.0.4 - 2020/12 = … … 28 30 29 31 * Init 30 ||||||| .r031 =======32 ## CHANGELOG33 34 35 = 1.0.3 - 2020/12 =36 37 * ADDED: truncate admin notice38 * ADDED: additional domains39 * ADDED: enable/disable purge40 * ADDED: Response Count Header41 * UPDATE: Only if Response Count Header is set, number of purged items will be shown42 * FIX: Add query to url43 44 = 1.0.2 - 2020/12 =45 46 * Debug47 48 = 1.0.1 - 2020/12 =49 50 * Cleaning Up51 * Added Ajax requests52 * Added logging to Wordpress error log53 54 = 1.0.0 - 2020/12 =55 56 * Init57 >>>>>>> .r2446011 -
remote-cache-purger/trunk/includes/queue.php
r2446015 r2446040 149 149 else { 150 150 foreach($this->responses as $key => $response) { 151 $headerPresent = $response['headers'][$this->plugin->optResponseCountHeader]; 152 $isCleared = isset($headerPresent) && $headerPresent > 0; 153 154 if($isCleared) { 155 $this->plugin->noticeMessage .= '<strong>'; 156 } 157 151 158 $this->plugin->noticeMessage .= $requests[$key]['method']; 152 159 153 if(isset($ response['headers'][$this->plugin->optResponseCountHeader])) {154 $this->plugin->noticeMessage .= '(' . $response['headers'][ 'x-purged-count'] . ')';160 if(isset($headerPresent)) { 161 $this->plugin->noticeMessage .= '(' . $response['headers'][$this->plugin->optResponseCountHeader] . ')'; 155 162 } 156 163 157 164 $this->plugin->noticeMessage .= ' | ' . $response['HTTP_CODE'] . ' | ' . $response['url']; 158 165 166 if($isCleared) { 167 $this->plugin->noticeMessage .= '</strong>'; 168 } 169 159 170 $this->plugin->noticeMessage .= '<br/>'; 171 160 172 } 161 173 } -
remote-cache-purger/trunk/remote-cache-purger.php
r2446015 r2446040 5 5 * Author: Myros 6 6 * Author URI: https://www.myros.net/ 7 * Version: 1.0.4 7 * Version: 1.0.4.1 8 8 9 9 * License: http://www.apache.org/licenses/LICENSE-2.0 … … 138 138 } 139 139 140 // $this->currentTab = isset($_GET['tab']) ? $_GET['tab'] : 'settings';141 140 $this->write_log('Main', 'Init', 'End'); 142 141 } … … 154 153 $this->optPurgePath = get_option($this->prefix . 'purge_path'); 155 154 $this->optPurgeOnSave = get_option($this->prefix . 'purge_on_save'); 156 $this->opt PurgedCountHeader = get_option($this->prefix . 'purged_count_header');155 $this->optResponseCountHeader = get_option($this->prefix . 'response_count_header'); 157 156 $this->optTruncateNotice = get_option($this->prefix . 'truncate_notice'); 158 157
Note: See TracChangeset
for help on using the changeset viewer.