Closed (fixed)
Project:
Profile Complete Percent
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Jul 2012 at 15:45 UTC
Updated:
27 Sep 2012 at 19:31 UTC
The pcp.admin.inc and pcp.rules.inc files are set to always be included when the module loads. This defeats the primary purpose of creating separate include files, which should be to improve performance by minimizing the module's bootstrapping footprint.
These includes should be called only when necessary.
Comments
Comment #1
grasmash commentedCommitted fix. files have been juggled around a bit to move all unnecessary code into includes.
Comment #2
cellar door commentedThere was no update to the pcp.rules in the changes to the recent dev version so the pcp.rules.inc wasn't being included I added the following to the module (doesn't matter where):
Flushed the caches a few times and now the rule is back.
Comment #3
grasmash commentedAh, that was an oversight on my part. I forgot that if a module.rules file is in a subfolder, it won't be recognized by default. Updated and pushed to dev.