<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ping</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="../../style.css" type="text/css" /> <link rel="stylesheet" href="../../local.css" type="text/css" /> <meta name="robots" content="noindex, follow" /> </head> <body> <div class="page"> <div class="pageheader"> <div class="header"> <span> <span class="parentlinks"> <a href="../../index.html">ikiwiki</a>/ <a href="../../ikiwiki.html">ikiwiki</a>/ <a href="../directive.html">directive</a>/ </span> <span class="title"> ping </span> </span> </div> </div> <div id="pagebody"> <div id="content" role="main"> <p>The <code>ping</code> directive is supplied by the <a href="http://ikiwiki.info/plugins/pinger/">pinger</a> plugin.</p> <p>This directive allows ikiwiki to be configured to hit a URL each time it updates the wiki. One way to use this is in conjunction with the <a href="http://ikiwiki.info/plugins/pingee/">pingee</a> plugin to set up a loosely coupled mirror network, or a branched version of a wiki. By pinging the mirror or branch each time the main wiki changes, it can be kept up-to-date.</p> <pre><code> [[!ping from="http://mywiki.com/" to="http://otherwiki.com/ikiwiki.cgi?do=ping"]] </code></pre> <p>The "from" parameter must be identical to the url of the wiki that is doing the pinging. This is used to prevent ping loops.</p> <p>The "to" parameter is the url to ping. The example shows how to ping another ikiwiki instance.</p> </div> </div> <div id="footer" class="pagefooter" role="contentinfo"> <div id="pageinfo"> <div id="backlinks"> Links: <a href="../../plugins/pinger.html">plugins/pinger</a> </div> <div class="pagedate"> Last edited <span class="date">Tue Feb 26 23:01:54 2019</span> <!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> --> </div> </div> <!-- from ikiwiki --> </div> </div> </body> </html>