Skip to content

Commit 66043f6

Browse files
committed
Better styling for redis defines and doc
1 parent a85bde7 commit 66043f6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ To purge a page immediately, follow these instructions:
101101
Yes, you can force override the redis hostname, port or prefix by using defines. For example:
102102

103103
`define('RT_WP_NGINX_HELPER_REDIS_HOSTNAME', '10.0.0.1');`
104+
104105
`define('RT_WP_NGINX_HELPER_REDIS_PORT', '6000');`
106+
105107
`define('RT_WP_NGINX_HELPER_REDIS_PREFIX', 'page-cache:');`
106108

107109

admin/lib/nginx-general.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,21 +186,21 @@ function nginx_general_options_page()
186186
<th><label for="redis_hostname"><?php _e( 'Hostname', 'nginx-helper' ); ?></label></th>
187187
<td>
188188
<input id="redis_hostname" class="medium-text" type="text" name="redis_hostname" value="<?php echo $redis_hostname; ?>" <?php echo $redis_hostname_readonly; ?> />
189-
<?php if ($redis_hostname_readonly) echo '<br>Overridden by global define'; ?>
189+
<?php if ($redis_hostname_readonly) echo '<p class="description">Overridden by global define</p>'; ?>
190190
</td>
191191
</tr>
192192
<tr>
193193
<th><label for="redis_port"><?php _e( 'Port', 'nginx-helper' ); ?></label></th>
194194
<td>
195195
<input id="redis_port" class="medium-text" type="text" name="redis_port" value="<?php echo $redis_port; ?>" <?php echo $redis_port_readonly; ?> />
196-
<?php if ($redis_port_readonly) echo '<br>Overridden by global define'; ?>
196+
<?php if ($redis_port_readonly) echo '<p class="description">Overridden by global define</p>'; ?>
197197
</td>
198198
</tr>
199199
<tr>
200200
<th><label for="redis_prefix"><?php _e( 'Prefix', 'nginx-helper' ); ?></label></th>
201201
<td>
202202
<input id="redis_prefix" class="medium-text" type="text" name="redis_prefix" value="<?php echo $redis_prefix; ?>" <?php echo $redis_prefix_readonly; ?> />
203-
<?php if ($redis_prefix_readonly) echo '<br>Overridden by global define'; ?>
203+
<?php if ($redis_prefix_readonly) echo '<p class="description">Overridden by global define</p>'; ?>
204204
</td>
205205
</tr>
206206
</table>

0 commit comments

Comments
 (0)