Since 2 months me and my team have random 404 errors on random pages. Sometimes it last few seconds, sometimes few minutes. Then we refresh the page and the page comes back as normal.
I checked the logs, server and octobercms backend but I can’t even see the 404 errors.
Could it be a route issue? Cache issue? Or anything else?
This can be caused by Apache sharing environment variables. Do you use a dedicated server to host one website, or is it sharing multiple sites?
When the 404 error is displayed, does it show using a different theme? If so, it might indicate that the database has fallen over and the configured theme (in the database) reverts to the one found in config/cms.php (in the file system).
Does it happen in production? This can be normal for some dev environments (XAMPP, Laragon, etc.), but it shouldn’t happen in a production environment.