Some years ago I created a website using Kirby 2. It was one of my first projects using Kirby. The websites main purpose was to present various products categorised by type.
Recently the client contacted me saying that he himself along with some visitors noticed that the site is running slow. I run some tests and found out the slow page loads are not related to front end issues (Although there is room for improvement there) but mostly due to large ttfb.
I wanted to test php execution time so i run some tests using microtime() and found out that some pages need up to 12 seconds to render. What I found strange though is that I can open a page and get microtime to report a very slow render time and then hit reload and get something like 0.05s as if the rendering of the page is getting cached. This creates a problem because I have no way of making measurements in a predictable manner as I have no control on how to reproduce the slow render time.
I hoped that maybe someone has some insight on why this is happening and how can I test it in a more reliable way.
Thanks in advance.