Grav 2.2 Released: The Fastest Flat-File CMS Is Now 2x Faster
Grav · September 24, 2026
About this announcement
kahunacart.com passed 1,000 pages this summer. Most of them are documentation and API reference for KahunaCart, and more keep arriving. Somewhere along the way I noticed the site had gotten slow in one very particular way. A normal page view was fine. But right after a cache clear, the first visitor waited more than a second. And because every page save in the new admin cleared the whole cache, I paid that second every time I fixed a typo. On a 10,000-page copy of the same site, that second became four and a half. So I stopped adding features for a few weeks and did a proper performance audit of Grav core, the API plugin and Admin 2. Grav 2.2 is the result. There are no big new features in this one. It's just faster, and in some places a lot faster. Here's the short version. "Before" is Grav 2.1.10 with API 1.0.39 and Admin 2 2.1.22. "After" is Grav 2.2.0 with API 1.0.40 and Admin 2 2.1.23. The small site is kahunacart.com's real content, 1,081 pages. The big one is the same site grown to 10,321 pages. A cold start is the first page view after the cache has been cleared, when Grav has to rebuild everything. A warm start is every page view after that, with the cache already built. 2× faster cold start, the first page view after a cache clear 1,047 → 526 ms4,633 → 2,326 ms at 10k 96% less memory per page view on a 10,000-page site 241.8 → 9.6 MB 9 → 2 API requests to start the admin, and just 1 on a return visit 734 → 339 ms after a clear 16× faster first page view after saving a page in the admin 1,075 → 67.9 ms Cold Starts When Grav rebuilt its pages cache, 2.1.10 wrote a compiled PHP file for every single page and then loaded each one into OPcache. On a site with a thousand pages that's a thousand files written and compiled before your visitor sees anything. On a big site those files also pushed the rest of Grav's compiled code out of OPcache's memory, so everything else got slower too. Grav 2.2 doesn't write them at all. A few more things add up on that same re
Read Full Story