RUEN
Let's talk

Own productOwn tool · WordPress plugin

Wolf Cache: building a WordPress page cache for sites with city subdomains

A page cache that never mixes up cities

Wolf Cache is a WordPress page cache plugin I wrote for sites with a subdomain per city. It stores a separate saved copy for each city, hands it out before WordPress even starts and clears it after an edit. On a city site a page now answers in 40 to 129 ms instead of 0.9 to 3.8 seconds.

Wolf Cache
Diagram of how Wolf Cache works: a saved copy per city served before WordPress starts (illustration, not a screenshot)
Type
Own tool · WordPress plugin
Role
Concept, interface and code
Year
2026

01The task

Every WordPress page is built from scratch: engine, database, plugins and theme work on each visit, and search robots add plenty of visits of their own. With hundreds of subdomains the number of pages multiplies. A normal cache is risky there, because a visitor from one city can receive a page of another, with a foreign title and phone number.

I wrote the plugin for a site with 1,142 subdomains, after ready-made solutions failed to cope with cities.

02What was done

  • A saved compressed copy of the page is served from disk before WordPress loads, without touching the database.
  • The copy is stored per address and per city, so a visitor never sees someone else’s city.
  • After a page is saved, old copies disappear on all subdomains at once, together with the main page and sections. One pass covers 1,272 subdomains.
  • A change of price or stock drops only that product, while a change of menu or settings clears everything. Cart, account and checkout are never cached.
  • Visits from ads carry tracking tags in the address, but receive the same ready copy as any other visitor.
  • Popular pages are rebuilt in the background after clearing, and a ceiling on disk use plus a hit-rate screen keep the cache under control.

03The result

40milliseconds to answer a city page

On the city site a page answers in 40 to 129 ms instead of 0.9 to 3.8 s. In a live test a 45 KB page travelled as 12 KB, and a repeat answer took 52 ms. Wolf Cache now runs on 29 sites.

These are server response times on my own projects. Real speed also depends on the theme, photos and hosting, so I quote a number only after checking a site.

Source: project data, 2026

How it works

01

Own copy for every city

No foreign titles or phone numbers: the saved copy depends on the address and the city.

02

Ads do not break speed

A tagged visit from an ad gets the ready page, and clicks stop waiting for loading.

03

Disk under control

A size ceiling, a cleaner that covers all cities and separate hit counts for people and robots.

Project screens

Technology

Similar projects

All work

Wolf Cache

Let’s talk about your project

Tell me what you need. I will reply with an estimate of the time and cost, in your own language.

About

Privacy policy