![]() |
[php/apache?] Multiple request weirdness..?
This problem is a little difficult to describe, so bear with me:
I regularly tail my php error log while I code, and pipe out all sql queries to the log in order to monitor them. I recently noticed on one of my sites that for some reason every action was being executed twice. So, when I refresh the news page and the news is selected from the db and the news template is rendered -- it is done *twice*. Now, it appears that after rendering the template (which is the very absolute last thing that the php file does before just ending) the page for some reason is accessed again, or in essence reloaded. This causes every sql query to be re-selected, a template re-rendered. I've been trying to isolate the problem for hours now and so far have determined the following: - it is not the fault of my MySQL wrapper (MysqlBroker) - it is not the fault of my function dispatcher system (I use the same code on my seretogis.org site and this doesn't occur) - it is not the fault of my templating system (DynamicTemplate) - my httpd.conf entries appear to be fine - if I rename my portal script from index.php to index2.php and load up the news with that (index2.php?action=display_index), it will correctly render the page but still try to access an index.php file afterwards. This is incredibly odd, and I've really run out of things to check. If anyone has any ideas or any other angle on this, I would appreciate it. edit: This seems to happen only with GET requests. When I POST a form I don't see any doubling-up of queries or template renders. |
All times are GMT -8. The time now is 01:25 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project