CakePHP-based site becomes obsolete in browser

I am working on a great website created by Croogo in CakePHP. Today, without any warning, the following began: if you make several consecutive HTTP requests, the site remains in download mode inside the browser. Any attempt to access any other URL from the same domain will produce the same result.

The interesting part, now: if I delete the cookie "CAKEPHP" and then try to reload it, everything will be fine until it freezes again.

Notes:

  • This happens on the client side. The site responds to other customers
  • PHP uses 30% of the processor power for a very short time before the site becomes out of date
  • This is related to the application - I tested it on three different configurations, and everyone acted the same
  • I commented on the code that I wrote before this happened, and still hasn't changed.
  • Restarting Apache also makes the website responsive in the web browser.
  • There are no slow queries. The longest time recorded for a series of queries is 134 ms. In addition, PHP basically parses only data without any operations
  • This happens the same way in scripts with one query and one variable that displays scripts that process large data sets.
+3
source share
1 answer

This was resolved by saying CakePHP to store sessions in the database instead of "php".

+1
source

Source: https://habr.com/ru/post/1795056/


All Articles