Changeset 2109254
- Timestamp:
- 06/20/2019 06:18:59 AM (7 years ago)
- Location:
- purge-varnish
- Files:
-
- 26 added
- 4 edited
-
tags/1.0.9 (added)
-
tags/1.0.9/class_purge_varnish.php (added)
-
tags/1.0.9/css (added)
-
tags/1.0.9/css/purge_varnish.css (added)
-
tags/1.0.9/images (added)
-
tags/1.0.9/images/error.png (added)
-
tags/1.0.9/images/ok.png (added)
-
tags/1.0.9/images/purge16x16.png (added)
-
tags/1.0.9/includes (added)
-
tags/1.0.9/includes/expire.php (added)
-
tags/1.0.9/includes/purge_all.php (added)
-
tags/1.0.9/includes/purge_urls.php (added)
-
tags/1.0.9/includes/terminal.php (added)
-
tags/1.0.9/js (added)
-
tags/1.0.9/js/purge_varnish.js (added)
-
tags/1.0.9/readme.txt (added)
-
tags/1.0.9/vcl (added)
-
tags/1.0.9/vcl/3.x (added)
-
tags/1.0.9/vcl/3.x/default.vcl (added)
-
tags/1.0.9/vcl/3.x/varnish (added)
-
tags/1.0.9/vcl/4.x (added)
-
tags/1.0.9/vcl/4.x/default.vcl (added)
-
tags/1.0.9/vcl/4.x/varnish (added)
-
tags/1.0.9/vcl/5.x (added)
-
tags/1.0.9/vcl/5.x/default.vcl (added)
-
tags/1.0.9/vcl/5.x/varnish (added)
-
trunk/class_purge_varnish.php (modified) (1 diff)
-
trunk/css/purge_varnish.css (modified) (1 diff)
-
trunk/js/purge_varnish.js (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
purge-varnish/trunk/class_purge_varnish.php
r1906488 r2109254 323 323 324 324 if ($stats_code == 200) { 325 $stats_msg = 'The page url <a href="' . esc_url($_POST['url']) . '" target="@target" style="color:#228B22;"><i>"' . esc_url($parse_url['path']) . '"</i></a> has been purged.'; 325 $path = isset($parse_url['path']) & !empty($parse_url['path']) ? $parse_url['path'] : ''; 326 $url = isset($_POST['url']) & !empty($_POST['url']) ? $_POST['url'] : ''; 327 328 $stats_msg = 'The page url <a href="' . esc_url($url) . '" target="@target" style="color:#228B22;"><i>"' . esc_url($path) . '"</i></a> has been purged.'; 326 329 $msg .= '<li style="color:#228B22;list-style-type: circle;">All Varnish cache has been purged successfuly!</li>'; 327 330 } else { -
purge-varnish/trunk/css/purge_varnish.css
r1906488 r2109254 1 .purge_varnish 2 { 3 width: 98%; 4 padding-left: 2px; 5 } 6 .purge_varnish table 7 { 8 width: 98%; 9 } 10 .purge_varnish .screen 11 { 12 background-color: #fff; 13 padding-bottom: 30px; 14 } 15 .purge_varnish h2 16 { 17 background-image: url("../images/purge16x16.png"); 18 background-position: left 8px center; 19 background-repeat: no-repeat; 20 margin: 15px 0 0; 21 padding: 9px 0 9px 30px; 22 } 23 .purge_varnish .screen .desc 24 { 25 padding-left: 23px; 26 color: #777; 27 } 28 29 .terminal_desc 30 { 31 padding-top: 3px; 32 color: #777; 33 } 34 35 .purge_varnish table th{ 36 text-align: right; 37 vertical-align: text-top; 38 } 39 .purge_varnish table td{ 40 text-align: left; 41 vertical-align: text-top; 42 } 43 44 .purge_varnish input[type=text], .purge_varnish select { 45 width: 350px; 46 border: 1px solid #0073AA; 47 border-left: 4px solid #1d8ccc; 48 } 49 50 .purge_varnish input[type=checkbox]{ 51 border: 2px solid #0073AA; 52 /* border-left: 4px solid #1d8ccc;*/ 53 } 54 55 .purge_varnish code 56 { 57 border-left: 4px solid #1d8ccc; 58 padding: 4px; 59 font-size: 14px; 60 } 61 .purge_varnish input[type=submit] { 62 -moz-user-select: none; 63 background-color: #1d8ccc; 64 border: 0 none; 65 border-radius: 3px; 66 cursor: pointer; 67 display: inline-block; 68 padding: 11px 15px; 69 color: #FFF; 70 text-align: center; 71 transition-duration: 0.3s; 72 transition-property: background, border-color; 73 transition-timing-function: ease-in; 74 } 75 ul.tab { 76 list-style-type: none; 77 margin: 0; 78 padding: 0; 79 overflow: hidden; 80 border-top: none; 81 background-color: #f1f1f1; 82 } 83 84 /* Float the list items side by side */ 85 ul.tab li { 86 float: left; 87 border-right: #eee; 88 } 89 90 /* Style the links inside the list items */ 91 ul.tab li a { 92 display: inline-block; 93 color: black; 94 text-align: center; 95 padding: 10px 30px; 96 text-decoration: none; 97 transition: 0.3s; 98 font-size: 17px; 99 } 100 101 /* Change background color of links on hover */ 102 ul.tab li a:hover { 103 background-color: #ddd; 104 } 105 106 /* Create an active/current tablink class */ 107 ul.tab li a:focus, .active { 108 background-color: #ccc; 109 } 110 111 /* Style the tab content */ 112 .tabcontent { 113 border-style:none!important;; 114 display: none; 115 padding: 6px 12px; 116 border: 1px solid #ccc; 117 border-top: none; 118 } 119 120 .tablinks{ 121 font-weight: bold; 122 font-size: 20px; 123 } 124 #wpbody-content dd, li { 125 margin-bottom: 0px; 126 } 127 .hide_custom_url {display: none;} 128 .show_custom_url {display: block;} 129 130 /*input[type="checkbox"][readonly] { 131 pointer-events: none; 132 }*/ 133 134 135 table.expiration tr td{ 136 border-bottom: 1px solid #ccc; 137 padding-bottom: 20px; 138 } 139 table.expiration tr td:first-child{ 140 background-color: #fbfbfb; 141 } 142 tr.expiration td{ 143 padding-top: 20px; 144 background-color: #fbfbfb; 145 } 1 .purge_varnish{width:98%;padding-left:2px} 2 .purge_varnish table{width:98%} 3 .purge_varnish .screen{background-color:#fff;padding-bottom:30px} 4 .purge_varnish h2{background-image:url(../images/purge16x16.png);background-position:left 8px center;background-repeat:no-repeat;margin:15px 0 0;padding:9px 0 9px 30px} 5 .purge_varnish .screen .desc{padding-left:23px;color:#777} 6 .terminal_desc{padding-top:3px;color:#777} 7 .purge_varnish table th{text-align:right;vertical-align:text-top} 8 .purge_varnish table td{text-align:left;vertical-align:text-top} 9 .purge_varnish input[type=text],.purge_varnish select{width:350px;border:1px solid #0073AA;border-left:4px solid #1d8ccc} 10 .purge_varnish input[type=checkbox]{border:2px solid #0073AA} 11 .purge_varnish code{border-left:4px solid #1d8ccc;padding:4px;font-size:14px} 12 .purge_varnish input[type=submit]{-moz-user-select:none;background-color:#1d8ccc;border:0;border-radius:3px;cursor:pointer;display:inline-block;padding:11px 15px;color:#FFF;text-align:center;transition-duration:.3s;transition-property:background,border-color;transition-timing-function:ease-in} 13 ul.tab{list-style-type:none;margin:0;padding:0;overflow:hidden;border-top:none;background-color:#f1f1f1} 14 ul.tab li{float:left;border-right:#eee} 15 ul.tab li a{display:inline-block;color:#000;text-align:center;padding:10px 30px;text-decoration:none;transition:.3s;font-size:17px} 16 .hide_custom_url,.tabcontent{display:none} 17 ul.tab li a:hover{background-color:#ddd} 18 .active,ul.tab li a:focus{background-color:#ccc} 19 table.expiration tr td:first-child,tr.expiration td{background-color:#fbfbfb} 20 .tabcontent{border-style:none!important;padding:6px 12px;border:1px solid #ccc;border-top:none} 21 .tablinks{font-weight:700;font-size:20px} 22 #wpbody-content dd,li{margin-bottom:0} 23 .show_custom_url{display:block} 24 table.expiration tr td{border-bottom:1px solid #ccc;padding-bottom:20px} 25 tr.expiration td{padding-top:20px} -
purge-varnish/trunk/js/purge_varnish.js
r1906488 r2109254 1 jQuery( document ).ready(function() { 2 if(jQuery('#post_expiration').length) { 3 jQuery('#post_expiration').css('display', 'block'); 4 } 5 6 jQuery(".ck_custom_url").change(function() { 7 if(this.checked) { 8 jQuery("div.custom_url").removeClass('hide_custom_url'); 9 jQuery("div.custom_url").addClass('show_custom_url'); 10 } 11 else { 12 jQuery("div.custom_url").removeClass('show_custom_url'); 13 jQuery("div.custom_url").addClass('hide_custom_url'); 14 } 15 }); 16 17 }); 18 19 function open_menu(evt, container_id) { 20 // Declare all variables 21 var i, tabcontent, tablinks; 22 23 // Get all elements with class="tabcontent" and hide them 24 tabcontent = document.getElementsByClassName("tabcontent"); 25 for (i = 0; i < tabcontent.length; i++) { 26 tabcontent[i].style.display = "none"; 27 } 28 29 // Get all elements with class="tablinks" and remove the class "active" 30 tablinks = document.getElementsByClassName("tablinks"); 31 for (i = 0; i < tablinks.length; i++) { 32 tablinks[i].className = tablinks[i].className.replace(" active", ""); 33 } 34 35 // Show the current tab, and add an "active" class to the link that opened the tab 36 document.getElementById(container_id).style.display = "block"; 37 evt.currentTarget.className += " active"; 38 } 1 function open_menu(e,s){var t,u,l;for(u=document.getElementsByClassName("tabcontent"),t=0;t<u.length;t++)u[t].style.display="none";for(l=document.getElementsByClassName("tablinks"),t=0;t<l.length;t++)l[t].className=l[t].className.replace(" active","");document.getElementById(s).style.display="block",e.currentTarget.className+=" active"}jQuery(document).ready(function(){jQuery("#post_expiration").length&&jQuery("#post_expiration").css("display","block"),jQuery(".ck_custom_url").change(function(){this.checked?(jQuery("div.custom_url").removeClass("hide_custom_url"),jQuery("div.custom_url").addClass("show_custom_url")):(jQuery("div.custom_url").removeClass("show_custom_url"),jQuery("div.custom_url").addClass("hide_custom_url"))})}); -
purge-varnish/trunk/readme.txt
r1906488 r2109254 4 4 Tags: varnish, purge, cache, caching, flush, speed, plugin, wp-cache, performance, fast, automatic 5 5 Requires at least: 4.0 6 Tested up to: 4.8.17 Stable tag: 1.0. 86 Tested up to: 5.2.2 7 Stable tag: 1.0.9 8 8 License: GPLv2 or later 9 9 … … 16 16 17 17 <strong>Features:</strong> 18 * Support on all varnish versions of 3.x, 4.x, 5.x 18 * Support on all varnish versions of 3.x, 4.x, 5.x and 6.x 19 19 * One time configuration. 20 20 * admin-socket integration and Varnish admin interface for status. … … 58 58 <strong>What versions of Varnish is supported?</strong> 59 59 60 Currently it is supporting all varnish versions of 3.x, 4.x, 5.x 60 Currently it is supporting all varnish versions of 3.x, 4.x, 5.x and 6.x 61 61 62 62 <strong>How do I manually purge a single URL from varnish cache?</strong> … … 107 107 108 108 == ChangeLog == 109 = 1.0.9 = 110 111 Fix: 112 1. Fix minor warning issues. 113 2. Fix css issues. 114 3. Re-test on php7.2 109 115 110 116 = 1.0.8 =
Note: See TracChangeset
for help on using the changeset viewer.