holmes-app / holmes-api

API for holmes website validation.
MIT License
17 stars 7 forks source link

Cache domain's reviews #27

Closed heynemann closed 10 years ago

heynemann commented 10 years ago

Cache the active reviews for each domain with the following info:

page_uuid page_url review_uuid violation_count violation_points last_review_date

The cache key will be domain-name-active-reviews, like www.globo.com-active-reviews.

Whenever a review finishes it should:

1) If the page for this review is in the redis list, pop it ($pull) and add the new review; 2) If the page for this review is not in the redis list, add it.