Posted on: 10/05/12 11:32am
By: ::Ben
I noticed that each file "functions.php" from plugins are called several times to display a single Geeklog page. Can we reduce this?
Ben
Re: Code optimisation: call to functions.php
Posted on: 10/05/12 02:38pm
By: Dirk
From what I can see, we're always loading it with require_once which means that PHP would take care of really loading it only once.
Or are you saying that you have proof that the actual file is loaded more than once?
bye, Dirk
Re: Code optimisation: call to functions.php
Posted on: 10/05/12 04:58pm
By: ::Ben
Sorry it was a theme issue on a test site.
If someone need to check if functions.php are loaded more than once just add
Text Formatted Code
COM_errorLog('hello');
in the file and look at your logs/error.log file
Ben