yapi/yapinator — pull request #2 by tobias104 (2011-12-19 10:14:05+00:00)
Title: Split cleaning into two stages.

This puts the odd/even => 2n+1/2n and whitespace trim functions in a before
cache lookup evaluation, and defers the others to post-cache lookup. In effect,
it allows :nth-child(2n) and :nth-child(even) to equate to the same cache
item, while keeping extra string transformations from slowing down the
cache key computation.

Also fixes a (bug?) where query results aren't stored in the cache by their inputs,
making :nth-child(even) and family uncacheable.