Welcome to Geeklog, Anonymous Sunday, April 12 2026 @ 05:42 am EDT
Geeklog Forums
Code optimisation: call to functions.php
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
35
25
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1581
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
30
21
Quote
All times are EDT. The time is now 05:42 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