Skip to main content
11 events
when toggle format what by license comment
Jan 16, 2019 at 16:00 comment added Utsav Madaan No sir problem is not solved because logs are way more when logging just a random text as shown in the original question (small random text logged & it was printed many of times & keeps on printing), neither i am using any external theme for now...will find out the cause in some days and will update it here...but its strange when i log $_SERVER it logs just 4-5 times per request..but when random text it just keeps logging
Jan 15, 2019 at 9:04 comment added Krzysiek Dróżdż So you've answered your own question - there are no multliple logs per request. AJAX is another request (and apparently there is an AJAX call on your page) and CRON is another request (and WP makes some CRON requests in the background during page visit) - everything is just fine and exactly how it is supposed to be.
Jan 15, 2019 at 8:56 comment added Utsav Madaan Ok so i did that logs printed with $_SERVER string representation very lesser times as compared to the logs which i printed for testing..now just printing only 3-4 times per request with $_SERVER dump with request origin/uri coming from frontend page, cron & ajax. Don't know what to do..will introspect it properly after some days having very less time for the project and will update it here. Thanks anyways.
Jan 14, 2019 at 17:46 comment added Krzysiek Dróżdż @UtsavMadaan add var_dump of $_SERVER to that log. You’ll know what requests are causing the logs.
Jan 14, 2019 at 17:44 comment added Utsav Madaan Yes its only me who has access & visiting the site
Jan 14, 2019 at 16:31 comment added Krzysiek Dróżdż Are you the only one, who is opening that site?
Jan 14, 2019 at 10:45 comment added Utsav Madaan Sir can you try it yourself printing log though from functions.php on your available environment with a fresh wordpress installation and as mentioned in original question i actually tried this and got the same results even with fresh wordpress installation on real server. So i believe nothing wrong with the user code/settings.
Jan 14, 2019 at 10:41 comment added Utsav Madaan So i monitored network calls through chrome developer options to my web server...their are no network calls post a page is fully loaded (page loaded with get/post html + assets network calls)
Jan 14, 2019 at 10:13 comment added Krzysiek Dróżdż Are there any AJAX requests on your site?
Jan 14, 2019 at 9:41 comment added Utsav Madaan So now i have added piece of code i found on internet to disable Heartbeat in Wordpress (will check it later whether needed or not) in functions.php at the top..but still getting those log messages multiple times in single page load.
Jan 14, 2019 at 9:29 history answered Krzysiek Dróżdż CC BY-SA 4.0