-
Fictioneer 5.18.3 Stable
released this
2024-05-25 17:49:51 +08:00 | 1345 commits to main since this releaseThis was supposed to be the next minor version, but a bug in the AJAX authentication demands urgency. Most of you should not be affected by this. Anyway, there are a few nice things for everyone. Mostly filters. But also some tiny features that are just not worth a minor version, I decided.
Please consider supporting me on Ko-fi, Patreon, or via crypto donation if you like the theme.
Highlight: Partial Chapter Caching
This is only for people who do not use cache plugin for whatever reason, because they do the same just better. Partial caching has been introduced in one of the last releases and did not achieve much. Now this does! Caching the content of chapters can save quite some server resources. For example, in a test with a 8,000 word chapter, it reduced render time by 13 milliseconds (yes, that is a lot) and consumed 4 MB less RAM. For anyone on a weak shared server cluster, that is tremendous. But really, use cache plugins if you can.
Partial caching has less compatibility issues than full-site caching, which is it's one advantage. Of course, that is under the assumption you do not render dynamic chapter content on the server side. However, chapter contents are typically static and should be save to cache. You can also disable the caching on a case-by-case basis if necessary, and unpublished or protected chapters are never cached anyway. Worst case, the cache will just time out after four hours by default.
Highlight: Randomized OAuth Usernames
This is the fault of Google. Well, many things are the fault of Google. In this case, it is the use of real names for accounts. Reportedly, users do not like having their real name as username -- even if you can change the displayed name and never have it exposed. Still, not great. Therefore, all new OAuth accounts created from Google will get a randomized username. All existing users may contact the site admin, because changing the username afterwards is a tiny weeny bit dangerous. There are plugins for that, though.
You can also enable this for all OAuth providers, although that could annoy some users just as much as it helps others. Your decision. Who does not want to be named HypersonicBob7777 or ScreamingBioplague1234? Why yes, I ate a clown for breakfast when I coded this.
Release Notes
- Fixed: AJAX authentication should now load user data again
- Fixed: Links to unpublished chapters are now disabled instead of leading to a 404 error
- Fixed: The HUE of light mode colors is now uniform again (never trust Tailwind colors)
- Improved: Added help modals to several settings to explain them better
- Improved: Partial caching now also caches chapter contents (unless protected or excluded)
- Improved: Added preselect params for taxonomies to [fictioneer_search] shortcode
- Removed: The performance setting to disabled global SVG filters has become obsolete
- New: Added setting to randomize all OAuth usernames (default for Google due to real names used)
- Dev: Renamed fictioneer_get_static_template_part() to fictioneer_get_cached_partial()
- Dev: Added no-index, obfuscation, and file protection measures to cached partials
- Dev: Added fictioneer_encrypt() and fictioneer_decrypt() utility functions
- Dev: Added fictioneer_get_username_adjectives() utility function
- Dev: Added fictioneer_get_username_nouns() utility function
- Dev: Added fictioneer_get_random_username() utility function
- Dev: Added fictioneer_random_username_adjectives filter
- Dev: Added fictioneer_random_username_nouns filter
- Dev: Added fictioneer_filter_chapter_icon filter
- Dev: Added fictioneer_filter_patreon_gate_message filter
- Dev: Added fictioneer_filter_static_content filter
- Dev: Added FICTIONEER_DEFAULT_CHAPTER_ICON constant
- Dev: Added FICTIONEER_PARTIAL_CACHE_EXPIRATION_TIME constant
- Dev: Refactored OAuth 2.0 authentication (now with encrypted cookie instead of Transient)
- Dev: Prepared for SubscribeStar OAuth (disabled until they improve their beta API)
Downloads