WordPress maintenance – PHP, page caching and federation (unrelated)

TL;DR I solved some lingering issues with my blog (WordPress) that got on my nerves. 1. I upgraded PHP from 8.2x to 8.5, 2. I improved page responsiveness by installing page cache plugin (WP Supercache) and most important: 3. I fixed ActivityPub federation that I broke when I installed Anubis. 1. PHP upgrade I was delaying upgrading PHP (WordPress was nagging) because ... it sounded too complex for me. Then I found (by accident) this php-upgrade script by Ernolf […]

https://blog.rozman.info/wordpress-maintenance-php-page-caching-and-federation-unrelated/

Wordpress maintenance – PHP, page caching and federation (unrelated) – Tomi's junkyard

@tomi

> Then I flushed Redis cache.

Got a cron for that by now. It's a constant source of problems with ActivityPub 😩

@bekopharm @tomi Why didn't you tell this earlier??? Can you share details? Cron or Wp-cron?

@po3mah cron. There is really not much to it:

0 * * * * /usr/bin/php /usr/local/bin/wp-cli.phar --path=/srv/www/www-data/htdocs/ cache flush

I think at least that this flushes also the object cache 🤔

wp cache flush – WP-CLI Command | Developer.WordPress.org

Flushes the object cache.

WordPress Developer Resources
@threadi @bekopharm Thanks! Is it really necessary to flush cache every day for AP to work correctly? I didn't have any issues until Anubis installation.
@po3mah I really don't know. I disabled this completely before because of problems with AP requests and only try again now with flush on a timer.
@po3mah @bekopharm I never have to do that in my projects. However, it might have something to do with your project setup. If you have any questions about this, it’s best to contact the Activitypub support forum: https://wordpress.org/support/plugin/activitypub/
[ActivityPub] Support | WordPress.org

WordPress.org Forums