Welcome to Geeklog, Anonymous Sunday, October 13 2024 @ 12:28 pm EDT
Geeklog Forums
Code optimisation: call to functions.php
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
I noticed that each file "functions.php" from plugins are called several times to display a single Geeklog page. Can we reduce this?
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
9
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
Or are you saying that you have proof that the actual file is loaded more than once?
bye, Dirk
23
7
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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 in the file and look at your logs/error.log file
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
If someone need to check if functions.php are loaded more than once just add
Text Formatted Code
COM_errorLog('hello');Ben
I'm available to customise your themes or plugins for your Geeklog CMS
11
8
Quote
All times are EDT. The time is now 12:28 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content