Check cache before returning prices
Add php docblocks