1954 Commits

Author SHA1 Message Date
Tetrakern
4384ecc3c0 Add footer_* params to Latest Chapters shortcode 2024-08-18 21:34:32 +02:00
Tetrakern
b69d3086ce Add $echo param to fictioneer_render_thumbnail() 2024-08-18 19:21:29 +02:00
Tetrakern
edee42b9cf Added customizer option for nested border radius multiplier 2024-08-18 16:56:51 +02:00
Tetrakern
a5c6e517e9 Add placeholder attribute to range input 2024-08-18 16:25:51 +02:00
Tetrakern
6b006f8d2f Rename fictioneer_output_small_card_thumbnail()
... to fictioneer_render_thumbnail() for a more general use. This can be called in more places than on cards thanks to the arguments.
2024-08-18 14:21:37 +02:00
Tetrakern
4654da95e7 Improve fictioneer_is_author() checks 2024-08-17 18:37:50 +02:00
Tetrakern
dcda0d21cd Fix multi-save guard and add setting to let REST requests pass 2024-08-17 17:27:09 +02:00
Tetrakern
dee3c86074 Fix Transient key for blog shortcode 2024-08-17 15:38:55 +02:00
Tetrakern
e7e6c40337 Display active know cache plugin on settings page 2024-08-17 14:51:29 +02:00
Tetrakern
2f61517b3b Remove bonk 2024-08-16 23:39:08 +02:00
Tetrakern
4af1582e50 Improve multi-save guard checks
A bit ugly, but this covers all special cases with the damn editor and its antics.
2024-08-16 23:38:21 +02:00
Tetrakern
f96612ba89 Clean up story card cache code and add locking mechanism 2024-08-16 22:01:48 +02:00
Tetrakern
00fcb2594e Fix array_slice of query result cache 2024-08-16 21:53:26 +02:00
Tetrakern
c7c7897bc0 Update setting text 2024-08-16 21:34:02 +02:00
Tetrakern
cdd4b9bd0a Fix cache limits not being properly applied 2024-08-16 21:24:46 +02:00
Tetrakern
2563164e08 Reduce default query result cache threshold to 50 2024-08-16 20:25:11 +02:00
Tetrakern
98ea8f10a0 Add locking mechanism for query result cache 2024-08-16 20:08:59 +02:00
Tetrakern
7518ae2bba Add break mechanism to query result cache
In case many large queries need to be cached at once.
2024-08-16 16:56:12 +02:00
Tetrakern
30dcc606d4 Add query result cache feature 2024-08-16 15:56:17 +02:00
Tetrakern
4f1eb88933 Fix comments not loading on bypassed protected posts 2024-08-16 13:46:11 +02:00
Tetrakern
8ac722de0a Code formatting 2024-08-16 13:31:17 +02:00
Tetrakern
8ea13ff4ab Update calculation and handling of story word counts 2024-08-16 01:22:36 +02:00
Tetrakern
1ae8b3c032 Improve performance to get story chapter posts 2024-08-15 23:36:45 +02:00
Tetrakern
3e757bdaa1 Experiment to use SQL for story word and chapter count
Unfortunately, I remembered that people need a filter to manipulate this query.
2024-08-15 19:58:16 +02:00
Tetrakern
8a900e4996 Increase Transient duration of global word count and statistics 2024-08-15 18:56:01 +02:00
Tetrakern
a5330e1c5c Improve speed of fictioneer_get_story_comment_count() 2024-08-15 12:56:24 +02:00
Tetrakern
ec216059f4 Add $args param to fictioneer_get_story_chapter_posts() 2024-08-15 12:32:47 +02:00
Tetrakern
9fac9c748d Fix missing filter arguments 2024-08-15 12:30:38 +02:00
Tetrakern
f3d61e1ad8 Add extra meta cache purge on story update
For good measure.
2024-08-15 10:55:22 +02:00
Tetrakern
45ddf81c5a Improve performance of global story word count 2024-08-15 01:34:53 +02:00
Tetrakern
c82e49cf88 Add new functions to keep story comment count updated
This might not always be correct, but the comments get recounted in certain intervals anyway and this is cheap.
2024-08-14 23:57:14 +02:00
Tetrakern
2f494bc737 Add additional checks for chapter story and appending 2024-08-14 23:19:05 +02:00
Tetrakern
2b31d514e4 Remove chapter from story if assignment is changed 2024-08-14 23:01:58 +02:00
Tetrakern
45bc835797 Disable story card cache comment count update
This might be too expensive, better turn it off for the time being.
2024-08-14 22:48:14 +02:00
Tetrakern
064dfbbe39 Move update of comment count in story data 2024-08-14 21:46:59 +02:00
Tetrakern
81dae9cee9 Improve story card cache purging 2024-08-14 21:37:41 +02:00
Tetrakern
810573943a Add source param to Latest Chapters/Updates shortcode 2024-08-14 15:17:42 +02:00
Tetrakern
f13873d990 Add doc comments 2024-08-14 04:12:43 +02:00
Tetrakern
3b230c5f65 Add infobox param to compact card shortcodes
And fix Latest Stories info box if taxonomies are disabled.
2024-08-14 01:48:21 +02:00
Tetrakern
1765cc095f Allow story card caching with cache plugins active
This should work together just fine.
2024-08-13 20:07:53 +02:00
Tetrakern
8c77b23260 Add feature to cache story cards 2024-08-13 19:18:51 +02:00
Tetrakern
0d31cef6e0 Fix cache disabling bug in password bypass
Welp.
2024-08-13 19:16:22 +02:00
Tetrakern
fa67ea339a Add fictioneer_get_story_comment_count() utility 2024-08-13 16:13:31 +02:00
Tetrakern
92d03d77a5 Added post option to disable page padding 2024-08-12 13:27:14 +02:00
Tetrakern
e585f59733 Remove sidebar classes from canvas-main and canvas-site templates 2024-08-12 12:20:21 +02:00
Tetrakern
58d342d039 Change page padding system 2024-08-12 12:00:29 +02:00
Tetrakern
f73aa30537 Add option to hide categories on posts 2024-08-11 21:50:20 +02:00
Tetrakern
1902e3649f Fix typo 2024-08-11 13:27:44 +02:00
Tetrakern
f3c9c4be54 Fix conditions for sidebar 2024-08-11 12:51:10 +02:00
Tetrakern
c29e2bc0a1 Fix excerpt fix 2024-08-10 15:51:49 +02:00