TIL: Defining a default value within register_post_meta drives you crazy if you no more aware of that you did it. It still persists, even if it is not in the database or the object cache.

Found out around an hour later … 🥲

https://kittsteiner.blog/blog/2026/default-value-in-register_post_meta/ #Database #Development #ObjectCache #TIL #WebDev #WebDevelopment #WordPress
Default value in register_post_meta – Kittsteiner Blog

TIL: While creating a new site in a multisite, you cannot properly work with site transients since wp_installing() returns true and thus only uses the object cache and never checks the database.

So beware if you need to rely on this while not using an object cache.

Workaround: use a site option instead.

#WordPress #Multisite #Transients #ObjectCache #Database #TIL

They say that the problem is always caching, but what kind of caching? I briefly describe a small visual display issue on my WordPress site that I resolved by clearing our Redis cache.

https://thenewleafjournal.com/leaf/wp-redis-object-cache-and-link-hover-color/

#wordpress #wordpressplugin #redis #objectcache #caching

WP Redis Object Cache and Link Hover Color

Examining how flushing the WordPress Redis Object Cache plugin fixed an issue I had with our link hover color effect not displaying properly.

The New Leaf Journal