Reduce default query result cache threshold to 50
This commit is contained in:
parent
98ea8f10a0
commit
2563164e08
@ -1600,7 +1600,7 @@ define( 'CONSTANT_NAME', value );
|
||||
| FICTIONEER_CARD_CACHE_LIMIT | integer | Number of story cards cached if the feature is enabled. Default `50`.
|
||||
| FICTIONEER_CARD_CACHE_EXPIRATION_TIME | integer | Time until the whole story card cache expires in seconds. Default `HOUR_IN_SECONDS`.
|
||||
| FICTIONEER_STORY_CARD_CHAPTER_LIMIT | integer | Maximum number of chapters shown on story cards. Default 3.
|
||||
| FICTIONEER_QUERY_RESULT_CACHE_THRESHOLD | integer | Count of a query result required to be eligible for caching. Default `75`.
|
||||
| FICTIONEER_QUERY_RESULT_CACHE_THRESHOLD | integer | Count of a query result required to be eligible for caching. Default `50`.
|
||||
| FICTIONEER_QUERY_RESULT_CACHE_LIMIT | integer | Number of query results cached if the feature is enabled. Default `50`.
|
||||
| FICTIONEER_QUERY_RESULT_CACHE_BREAK | integer | Limit the number of large query result cache uploads per request. Default `3`.
|
||||
| FICTIONEER_CACHE_PURGE_ASSIST | boolean | Whether to call the cache purge assist function on post updates. Default `true`.
|
||||
|
@ -305,7 +305,7 @@ if ( ! defined( 'FICTIONEER_STORY_CARD_CHAPTER_LIMIT' ) ) {
|
||||
|
||||
// Integer: Count of the query results required to be eligible for caching
|
||||
if ( ! defined( 'FICTIONEER_QUERY_RESULT_CACHE_THRESHOLD' ) ) {
|
||||
define( 'FICTIONEER_QUERY_RESULT_CACHE_THRESHOLD', 75 );
|
||||
define( 'FICTIONEER_QUERY_RESULT_CACHE_THRESHOLD', 50 );
|
||||
}
|
||||
|
||||
// Integer: Maximum query results cached as Transients
|
||||
|
@ -758,7 +758,7 @@
|
||||
FICTIONEER_QUERY_RESULT_CACHE_LIMIT,
|
||||
FICTIONEER_QUERY_RESULT_CACHE_THRESHOLD
|
||||
),
|
||||
__( '<p>Queries that return many results are resource-intensive and can slow down your site, especially for stories with hundreds of chapters. This feature mitigates the slowdown by caching the results of the largest queries in the database, typically resulting in faster loading times.</p><p>You can use the <code>FICTIONEER_QUERY_RESULT_CACHE_LIMIT</code> constant to change the number of cached results (default is 50) and the <code>FICTIONEER_QUERY_RESULT_CACHE_THRESHOLD</code> constant to change what constitutes as large result (default is 75). Be aware that increasing these numbers will result in higher RAM consumption.</p>', 'fictioneer' )
|
||||
__( '<p>Queries that return many results are resource-intensive and can slow down your site, especially for stories with hundreds of chapters. This feature mitigates the slowdown by caching the results of the largest queries in the database, typically resulting in faster loading times.</p><p>You can use the <code>FICTIONEER_QUERY_RESULT_CACHE_LIMIT</code> constant to change the number of cached results (default is 50) and the <code>FICTIONEER_QUERY_RESULT_CACHE_THRESHOLD</code> constant to change what constitutes as large result (default is 50). Be aware that increasing these numbers will result in higher RAM consumption.</p>', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user