We have a set of semantic queries in a template. That template is used in some pages. However, by looking at the database process list, it seems that those set of queries are processed whenever a page is requested, even when the template is not used by the requested page (e.g. special pages). All the SQL queries are generated by the getQueryResult function. Since those queries are very computational intensive, this “bug” slows down the entire site. If we take the inline queries out of the template or change $smwgQEnabled to false, the site becomes fast again. Has anyone experienced the same issue?