File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ function sort_list(&$list) {
222222 <td><?= $ item ['full_path ' ]?> </td>
223223 <td><?= $ item ['hits ' ]?> </td>
224224 <td><?= human_size ($ item ['memory_consumption ' ])?> </td>
225- <td><a href="?action=op_delete&selector=<?= urlencode ('^ ' .$ item ['full_path ' ].'$ ' )?> ">Delete</a>
225+ <td><a href="?action=op_delete&selector=<?= urlencode ('^ ' .$ item ['full_path ' ].'$ ' )?> ">Delete</a></td>
226226 </tr>
227227 <?php endforeach ; ?>
228228 </tbody>
@@ -251,6 +251,12 @@ function sort_list(&$list) {
251251 <button type="submit" name="action" value="apc_delete">Delete</button>
252252 </form>
253253 </div>
254+ <?php if ( isset ( $ _GET ['action ' ] ) && $ _GET ['action ' ] == 'apc_view ' ): ?>
255+ <div>
256+ <h3>Value for <?= htmlentities ('" ' .$ _GET ['selector ' ].'" ' )?> </h3>
257+ <pre><?php var_dump ( apc_fetch (urldecode ($ _GET ['selector ' ])) ); ?> </pre>
258+ </div>
259+ <?php endif ; ?>
254260 <?php if ( isset ( $ _GET ['action ' ] ) && $ _GET ['action ' ] == 'apc_select ' ): ?>
255261 <div>
256262 <h3>Keys matching <?= htmlentities ('" ' .$ _GET ['selector ' ].'" ' )?> </h3>
@@ -277,7 +283,10 @@ function sort_list(&$list) {
277283 <td><?= human_size ($ item ['mem_size ' ])?> </td>
278284 <td><?= $ item ['ttl ' ]?> </td>
279285 <td><?= date ('Y-m-d H:i ' , $ item ['mtime ' ] + $ item ['ttl ' ] )?> </td>
280- <td><a href="?action=apc_delete&selector=<?= urlencode ('^ ' .$ item ['key ' ].'$ ' )?> ">Delete</a>
286+ <td>
287+ <a href="?action=apc_delete&selector=<?= urlencode ('^ ' .$ item ['key ' ].'$ ' )?> ">Delete</a>
288+ <a href="?action=apc_view&selector=<?= urlencode ($ item ['key ' ])?> ">View</a>
289+ </td>
281290 </tr>
282291 <?php endforeach ; ?>
283292 </tbody>
You can’t perform that action at this time.
0 commit comments