Update extension.php

extension query caching, saves a few db queries per request