Skip to content

Commit

Permalink
Add example Donate addon cron command
Browse files Browse the repository at this point in the history
Add example Donate addon cron command using wget
  • Loading branch information
samerton committed Oct 8, 2017
1 parent a912859 commit 9e1b36f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/Donate/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,12 @@
<br />
<code>http://<?php echo $_SERVER['SERVER_NAME']; ?>/addons/Donate/sync.php?key=<?php echo $unique_key; ?></code>
<br /><br />
<strong>for example</strong> (will run every 20 minutes):<br />
<code>wget --spider "http://<?php echo $_SERVER['SERVER_NAME']; ?>/addons/Donate/sync.php?key=<?php echo $unique_key; ?>" >/dev/null 2>&1</code>
<br /><br />
<strong>Please keep the above URL a secret!</strong>
<br /><br />
To avoid using the API too often, please leave a reasonable time period between running the cron job.
To avoid using the API too often, please leave a reasonable time period between running the cron job, such as 20 minutes.

<!-- Modal -->
<div class="modal fade" data-keyboard="false" data-backdrop="static" id="loadingModal" tabindex="-1" role="dialog" aria-labelledby="loadingModalLabel" aria-hidden="true">
Expand Down

0 comments on commit 9e1b36f

Please sign in to comment.