diff options
| author | Andrew Dolgov <fox@bah.spb.su> | 2009-01-22 08:09:18 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@bah.spb.su> | 2009-01-22 08:09:18 +0100 |
| commit | 2610b6fc8b62f254645c476e4805d50266cef7ad (patch) | |
| tree | a833f8ef643c223508ed17278dc6077ad5603a0e | |
| parent | 90ec0c86ca16444fc006ffb17a19787bc7f3d718 (diff) | |
purge_feed: stop when purging is disabled for the feed
| -rw-r--r-- | functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 416ab7c90..8eaab14fd 100644 --- a/functions.php +++ b/functions.php @@ -133,6 +133,7 @@ function purge_feed($link, $feed_id, $purge_interval, $debug = false) { if (!$purge_interval) $purge_interval = feed_purge_interval($link, $feed_id); + if ($purge_interval == -1 || !$purge_interval) return; $rows = -1; |