I needed to control expiration of FeedsNodeProcess generated content based not on the time of first import, but on the last time the source content was present. For example, the content may be posted on the source site for 1 day or 3 months, I want the content to expire on my site within about a day of it disappearing from the source.

I modified FeedsNodeProcess to "touch" the imported timestamp for existing content with matching hash (therefore the node itself doesn't get updated). Then I altered the expire method to optionally allow the age of the node to be determined by either the node publication date (original behavior) or the last imported time (new behavior).

Hopefully other people will find this feature useful, so I have provided a patch (against alpha12) for anyone who is interested.

CommentFileSizeAuthor
expire-by-imported.patch5.19 KBnelson_rp
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_b’s picture

Is this feature essentially the same as what's requested in #661314?
#661314: "Sync" or "cache" mode

nelson_rp’s picture

Looks like it is a dup of #661314 (with the exception of some of rjbrown99's "garbage" code). How should it be handled? Should I repost the patch on that issue and mark this as duplicate?

alex_b’s picture

Status: Active » Closed (duplicate)

Should I repost the patch on that issue and mark this as duplicate?

Yes, please.