Merge pull request #19 from straup/master

Smarty compile fix; Optional cache prefixes
capture selection when pre-parsing _paginated queries