dharmafly / noodle

A node server and module which allows for cross-domain page scraping on web documents with JSONP or POST.
https://noodle.dharmafly.com/
745 stars 69 forks source link

Result cache storing twice for a single map query #80

Closed AaronAcerboni closed 11 years ago

AaronAcerboni commented 11 years ago
{
  "url": "http://aaronacerboni.github.com",
  "map": {
     "bar": {
        "select": "title"
      }
   }
}

This stores to the result cache twice. It should only do this once.

AaronAcerboni commented 11 years ago

No. This was a misunderstanding of how queries are cached for mapped results. Two different parts of the overall query are cached. This is because each custom property in a mapped query (like bar above) is essentially a query itself.