GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLAGGER::RULE::FRESH (3)

.ds Aq ’

NAME

Plagger::Rule::Fresh - Rule to find ’fresh’ entries or feeds

CONTENTS

SYNOPSIS



  # entries updated within 120 minutes
  - module: SmartFeed
    config:
      id: fresh-entries
    rule:
      module: Fresh
      duration: 120

  # remove entries older than mtime of /tmp/foo.tmp
  - module: Filter::Rule
    rule:
      module: Fresh
      mtime:
        path: /tmp/foo.tmp
        autoupdate: 1



DESCRIPTION

This rule finds fresh entries or feeds, which means updated date is within duration minutes. It defaults to 2 hours, but you’d better configure the value with your cronjob interval.

CONFIG

duration


  duration: 5



This rule matches with entries posted within 5 minutes. When you invoke plagger script in cronjob, you’d better specify the same duration variable with the job interval.

If the supplied value contains only digit, it’s parsed as minutes. You can write in a human readable format like:



  duration: 4 hours



and this module DWIMs. It defaults to 120, which means 2 hours.

mtime


  mtime:
    path: /path/to/mtime.file
    autoupdate: 1



This rule matches with entries newer than mtime of /path/to/mtime.file. If autoupdate option is set (default is off), this plugin automatically creates and updates the file in plugin registration phase.

AUTHOR

Tatsuhiko Miyagawa

Thanks to youpy, who originally wrote Plagger::Plugin::Filter::Fresh at <http://subtech.g.hatena.ne.jp/youpy/20060224/p1>

SEE ALSO

Plagger, Time::Duration
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLAGGER::RULE::FRESH (3) 2006-12-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.