Apart from the fact, that the code should ideally explain itself, this doesn't explain it either really. The function is returning true or false as far as I see it, so how does it return something that determines if both folder listings and documents should be cached, or only folder listings?