It’s something I noticed ever since I started working with WordPress. It’s a universal issue, in the sense that it doesn’t matter if the WP installation is on my shared hosting account (haven’t tried different providers though), or a local LAMP setup.
Brand-new, clean WordPress, with 1 post, 1 page, and defaukt theme – or old WP, with hundreds of posts, a heavy theme and tons of plugins… doesn’t make a difference.
Currently working on a screaming fast local virtual machine (i7-3930k with a fast SSD, CentOS 6.2, Softaculous, standard Apache and MySQL, nothing else running on the box) and the scenario goes like this:
- First time load, any front- or backend pages: about 1 second delay.
- Subsequent load of the same or ANY OTHER PAGE (front- or backend), WITHIN ~25 seconds: virtually instantaneous response.
- Wait 25 seconds, reload, the 1-second delay is back
This 25-second interval is about the best measurement I was able to do within the limits of my patience, but it’s got pretty good accuracy and repeatability.
Further observations:
- Different installations on the same LAMP are “isolated” from each other, i.e. loading one site, then immediately loading another one does not make the latter to load fast.
- My current “solution” is having a tab open with a dummy page that reloads itself every 20 seconds
Did anyone else notice this issue? What could it be? I’d be happy to provide any and all details to help track this thing down. Thank you all!