Live data from Hacker News

How to Run WordPress completely from RAM

rickconlee.com

11–20 of 61 posts

Re: How to Run WordPress completely from RAM

#11

Mandatory reminder - don't use WordPress in 2025. Use headless CMS plus static site generator. e.g. Strapi plus Astro

While WP is not my first choice, it's also not good to give binary answers as the only factual options.

There will be lots strapi and astro or whatever preference/interpretation we have personally can't do.

Re: How to Run WordPress completely from RAM

#13
Pagespeed gives this man's site a 72: https://pagespeed.web.dev/analysis/https-rickconlee-com/foj4...

And my plain ol' wordpress an 83: https://pagespeed.web.dev/analysis/http-egypt-urnash-com/a1r...

My site's a WP that I started up in like 2012 and it's been running continuously ever since, it's sitting behind Apache, it's got a cache plugin, nothing special at all.

Re: How to Run WordPress completely from RAM

#14
post #11

Mandatory reminder - don't use WordPress in 2025. Use headless CMS plus static site generator. e.g. Strapi plus Astro

While WP is not my first choice, it's also not good to give binary answers as the only factual options. There will be lots strapi and astro or whatever preference/interpretation we have personally can't do.

It's always "in most cases". I simply don't see space for WordPress on green field sites anymore. If something is so small it does not require CMS - it's better to use pure HTML. Otherwise "in most cases" it's better to use headless CMS.

Re: How to Run WordPress completely from RAM

#15

Pagespeed gives this man's site a 72: https://pagespeed.web.dev/analysis/https-rickconlee-com/foj4... And my plain ol' wordpress an 83: https://pagespeed.web.dev/analysis/http-egypt-urnash-com/a1r... My site's a WP that I started up in like 2012 and it's been running continuously ever since, it's sitting behind Apache, it's got a cache plugin, nothing special at all.

[deleted]

Re: How to Run WordPress completely from RAM

#16

I assume that modern filesystem caching to RAM is incredibly sophisticated, but wouldn't a typical website already be fully served from RAM? If you only have a few megabytes of code + assets, won't the OS see this is hot data, not being updated, so it is no longer being read from disk sometime after the initial read?

The code contains database calls that have to run, reads and writes. Processors are sophisticated, but if they (or rather, they and the os) were that smart, WordPress installations would be a lot faster by default.

And maybe that's not surprising, think about it: the typical server does a lot of other things additionally to serving one specific WordPress site.

Re: How to Run WordPress completely from RAM

#17

I assume that modern filesystem caching to RAM is incredibly sophisticated, but wouldn't a typical website already be fully served from RAM? If you only have a few megabytes of code + assets, won't the OS see this is hot data, not being updated, so it is no longer being read from disk sometime after the initial read?

A performance problem I’ve run into with small websites like this one is many caching systems are tuned for bigger companies or hotter programs, and basically every load ends up an “exceptional” cold start case. VMs wake up, Cloudflare actually only keeps your data one place, there’s no sane HTTP caching value, and, yeah, files are read from disk. Worse, it’s easy to miss during testing by loading things more frequently. I’m sure there are filesystem or server parameters to tweak, but I do think small websites that want great performance should be, somewhere somehow, managing caching manually.

Re: How to Run WordPress completely from RAM

#19

Pagespeed gives this man's site a 72: https://pagespeed.web.dev/analysis/https-rickconlee-com/foj4... And my plain ol' wordpress an 83: https://pagespeed.web.dev/analysis/http-egypt-urnash-com/a1r... My site's a WP that I started up in like 2012 and it's been running continuously ever since, it's sitting behind Apache, it's got a cache plugin, nothing special at all.

Shoemakers kids have holes in their shoes. In my heyday of freelance work my website was always the last priority. The freelance work I was doing kept me so busy I had no time to spit shine my own site.

This is a Wordpress site, pagespeed is 96 https://pagespeed.web.dev/analysis/https-www-storwell-com/wn...

Post reply on HN