Welcome to Geeklog, Anonymous Thursday, July 10 2025 @ 03:18 am EDT
Geeklog Forums
Code optimisation: call to functions.php
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
I noticed that each file "functions.php" from plugins are called several times to display a single Geeklog page. Can we reduce this?
Ben
Ben
14
15
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
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
28
15
Quote
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
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
If someone need to check if functions.php are loaded more than once just add
Text Formatted Code
COM_errorLog('hello');Ben
22
14
Quote
All times are EDT. The time is now 03:18 am.
- 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