Skip to content

Commit 54e6efe

Browse files
committed
1.4.1 Final tweaks.
1 parent 425685b commit 54e6efe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

assets/drop-in/object-cache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ private function sqlite_load_sizes() {
10471047
$object_cache = self::OBJECT_CACHE_TABLE;
10481048
$offset = $this->noexpire_timestamp_offset;
10491049
$sql =
1050-
"SELECT SUM(LENGTH(value) + LENGTH(name) + 6) length, ((expires+15)/16)*16 expires FROM $object_cache WHERE expires >= $offset GROUP BY (expires/16) ORDER BY 2";
1050+
"SELECT SUM(LENGTH(value) + LENGTH(name) + 6) length, ((expires+15)/16)*16 expires FROM $object_cache WHERE expires >= $offset GROUP BY ((expires+15)/16)*16 ORDER BY ((expires+15)/16)*16";
10511051
$stmt = $this->sqlite->prepare( $sql );
10521052

10531053
return $stmt->execute();

readme.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ Exactly predicting each site's speedup is not possible. Still, benchmarking resu
8585

8686
= What Cached Data Size should I use for my site? =
8787

88-
The default setting for Cached Data Size is 16 megabytes (MiB). This plugin allows the actual cached data size to grow larger than that, and occasionally removes old data to trim back the size to the setting. Take a look at the Statistics page. If your actual cached data setting is consistently larger than the setting, double the setting.
88+
The default setting for Cached Data Size is 16 megabytes (MiB). This plugin allows the actual cached data size to grow larger than that, and occasionally removes old -- the least recently updated -- data to trim back the size to the setting. Take a look at the Statistics page. If your actual cached data usage under All Groups is consistently larger than the setting, double the setting.
8989

9090
If you operate a large and busy site, try an initial setting of 32 MiB, then adjust it based on the growth of the actual size.
9191

92+
Notice that this setting controls the size of the data in the cache. That is the size shown under All Groups. The data file used by SQLite is larger than that.
93+
9294
= What is SQLite? =
9395

9496
[SQLite](https://www.sqlite.org/about.html) is fast and efficient database software. It doesn't require a separate server. Instead, it is built into php using the [SQLite3](https://www.php.net/manual/en/book.sqlite3.php) extension. SQLite programs don't need to open network connections to send requests and wait for replies.

0 commit comments

Comments
 (0)