Addition of a new parameter to the options that the created date can be passed in through the drush command, so we can get just the items that have been created in the last X hours

So for example to get the posts on a blog created in the last hour the commnd would be

drush cacheconv-create preset --type=blog --created=24 --limit=20

This would get us the last 20 blog posts that were created in the last 24 hours?

Comments

pobster’s picture

Haha! I've already written something similar to this somewhere, I don't appear to have made a release for it though... I'll dig it out tonight...

Pobster

pobster’s picture

Version: 6.x-1.3 » 6.x-1.5
Component: User interface » Code
Assigned: Unassigned » pobster
Status: Active » Fixed

Done, change the Hudson job to;

--custom="created > UNIX_TIMESTAMP(DATE_SUB(CONCAT(CURDATE(), ' 00:00:00'), INTERVAL 2 DAY))"

Everything since midnight day before yesterday - you might possibly want to comment out the enforced LIMIT in the drush include as well.

Pobster

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.