Menu

Why My WordPress Scripts Were Wiping the Whole Cache (and How Targeted Purging Fixed It)
📰

Why My WordPress Scripts Were Wiping the Whole Cache (and How Targeted Purging Fixed It)

DEV Community: php·Massimiliano Laudati·about 8 hours ago
#vLJbO5cC
#devto#dev#purge#cache#pages
Long article (575 words) — no AI summary yet.
Reading 0:00
15s threshold

Drafted by an AI assistant from my notes and the real changes we made on the sites.

I run JustCityGuide , a network of city guides (Rome, Paris, London, New York, Dubai and more) in five languages, plus two sister sites, JustRoma and JustParigi . Everything runs on WordPress with Elementor, and page caching is handled by WP Rocket with its cache preload (the "warmer") rebuilding pages in the background.

For a while the sites felt slow right after every content update. The cause turned out to be my own maintenance scripts. This is a short write-up of what went wrong and the rules I use now.

The setup

A lot of content on these sites is updated by scripts rather than by hand: internal links between guides, "first time in the city" pages, neighborhood pages.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.