96175
results for "wordpress"
-
wow! that's a lot
[snarfed]
at
2026-04-01 00:42
-
Nice thing about the way I do the cache-clear on updates, though, is I have a plugin that displays an "under construction" message automatically if the cache has been cleared within the last 15 minutes prior to page load. So as I work, the "under construction" message appears or disappears on the front end as needed, without me having to remember to turn it on or off
[Michael_Kupiet]
at
2026-04-01 00:40
-
I could let the menus update nightly, or even perhaps only with a manual trigger, instead of immediately when new content is added. It wouldn't be a huge catastrophe if new content didn't appear in the menus for a few hours. I'll think about it
[Michael_Kupiet]
at
2026-04-01 00:40
-
[snarfed] Continuing from #indieweb-dev: Yeah the caching thing is funny. I wrote my own caching system. It uses built-in stores (first transients, then eventually an object cache) but they get cleared &/or updated on my schedule
[Michael_Kupiet]
at
2026-04-01 00:40
-
Which worked fine for a while, until I had enough cetagories and posts that it started taking 30 seconds to build the menu on every page load! So I built the caching system. But then, new pages didn't get added to the menus immediately, because the menus were now cached. So every time I create a new post, the cache gets flushed, so the menus are rebuilt on the next page load so they're always up-to-date. Then they're
[Michael_Kupiet]
at
2026-04-01 00:40
-
This was all created two years ago, so it's tough to recall, but knowing more about WordPress performance now than I did then, I have some suspicions about ineffeiciencies in the basic menu-building routine. I thiiiiink it might be hammering the database with repeated calls instead of pulling the whole category tree at once and traversing it in memory. I've been procrastinating on looking again at that menu-building script but
[Michael_Kupiet]
at
2026-04-01 00:40
-
immediately cached again so they don't need to be rebuilt, until the next update that changes the menu content. The whole system makes my site run surprisingly fast for how very much processing has to occur to generate the pages... /except/ when I've just done an update and it has to update everything
[Michael_Kupiet]
at
2026-04-01 00:40
-
Originally, I didn't want to have to add new wordpress pages to my menus manually every time I added a page, so the menus are dynamically generated by traversing the category tree from a top-level category that contains everything I want in the menus.
[Michael_Kupiet]
at
2026-04-01 00:40
-
I basically have options set in the cache plugin where I can turn on and off which wordpress hooks will get a cache clear added to them. Right now I think it's just when posts are published or plugin files are edited.
[Michael_Kupiet]
at
2026-04-01 00:40
-
it might be time
[Michael_Kupiet]
at
2026-04-01 00:40