03-27-2004, 05:54 AM | #1 (permalink) |
Huggles, sir?
Location: Seattle
|
[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.
__________________
seretogis - sieg heil perfect little dream the kind that hurts the most, forgot how it feels well almost no one to blame always the same, open my eyes wake up in flames Last edited by seretogis; 03-27-2004 at 09:25 AM.. |
Tags |
php or apache, weirdness |
|
|