B
B
Blackaxes2015-10-17 05:59:22
Phalcon
Blackaxes, 2015-10-17 05:59:22

Multiple execution of the script, why?

It’s worth mentioning right away that the experience with this framework is minimal.
The question arose why, when accessing any part of a project written using phalcon, the code is repeatedly executed? For example, if the controller has a record to a file (with the append option), or just a SQL query, then 3 of them are executed. Found this problem in the logs (included logging of sql queries and errors). there is just recorded 3 of the same SQL query per second. I thought that the logging operation could be "buggy" in this way, but no, the requests are really executed three times.
I decided to download the source from the github developers of a simple mvc application. Called the function of writing to a file, and similarly received three records in a row in a file.
What could be the reason for this phenomenon?
Used windows/xampp 3.2.1; phalcon version 2.0.8; php 5.5.6

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Blackaxes, 2015-10-17
@Blackaxes

yes, echo tried of course, they were executed only once.
I tried restarting apache. Nothing changed.
Now I removed .htaccess from the root directory, url requests were not redirected to public/index.php, respectively,
and an error was displayed. I returned it back and all sql queries started to work only once. How is that possible then?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question