Currently the facetapi.callbacks.inc file is sourced on every page load. I we moved the require_once call to the FacetapiAdapter::processFacets() method, the file will only be sourced when necessary.

Comments

cpliakas’s picture

Status: Active » Needs review
StatusFileSize
new1.22 KB

Attached patch makes the change.

cpliakas’s picture

Status: Needs review » Needs work

Hm... This patch seems to break the "Post date" facet.

cpliakas’s picture

Status: Needs work » Needs review
StatusFileSize
new1.21 KB

Attached patch places the require_once call in the Facetapiadapter::addActiveFilters() method, which runs earlier.

cpliakas’s picture

Status: Needs review » Fixed
nick_vh’s picture

Why don't you use module_load_include?

cpliakas’s picture

Status: Fixed » Needs work

Because I am sleep deprived.

cpliakas’s picture

Status: Needs work » Fixed

Good catch, Nick. Follow up commit at http://drupalcode.org/project/facetapi.git/commit/1c1dca0.

Automatically closed -- issue fixed for 2 weeks with no activity.