Skip to content

Commit 4d66fa2

Browse files
committed
Remove the busy timeout docs from the plugin readmes
SQLITE_BUSY_TIMEOUT is a small configuration detail. Like SQLITE_JOURNAL_MODE, it will be documented with the other configuration options later.
1 parent e25ba0c commit 4d66fa2

2 files changed

Lines changed: 0 additions & 27 deletions

File tree

‎packages/plugin-sqlite-database-integration/README.md‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,6 @@ for an in-memory SQLite database. The database directory must be writable by PHP
5858
Integrations should always read `DB_PATH` after WordPress loads instead of assuming
5959
a fixed database path.
6060

61-
## Busy timeout
62-
63-
SQLite allows only one writer at a time. When a write cannot start because another
64-
connection holds the write lock, SQLite waits up to the busy timeout before failing
65-
with a "database is locked" error. The default timeout is 10 seconds.
66-
67-
To change the timeout, define the `SQLITE_BUSY_TIMEOUT` constant in `wp-config.php`
68-
with a value in whole seconds:
69-
70-
```php
71-
// Wait up to 30 seconds for the write lock before failing.
72-
define( 'SQLITE_BUSY_TIMEOUT', 30 );
73-
```
74-
75-
Set it to `0` to fail immediately instead of waiting.
76-
7761
## Development
7862

7963
Run these commands from the repository root:

‎packages/plugin-sqlite-database-integration/readme.txt‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@ To properly **secure the SQLite database**, define the `DB_PATH` constant to an
7373

7474
The value of `DB_PATH` must be an absolute path to the SQLite database file, or `:memory:` for an in-memory SQLite database. The database directory must be writable by PHP. Changing `DB_PATH` selects a different database without moving an existing one.
7575

76-
= How can I configure the SQLite busy timeout? =
77-
78-
SQLite allows only one writer at a time. When a write query cannot start because another connection holds the write lock, SQLite waits up to the busy timeout before failing with a "database is locked" error. The default timeout is 10 seconds.
79-
80-
To change the timeout, define the `SQLITE_BUSY_TIMEOUT` constant in `wp-config.php` with a value in whole seconds:
81-
82-
// Wait up to 30 seconds for the write lock before failing.
83-
define( 'SQLITE_BUSY_TIMEOUT', 30 );
84-
85-
Set it to `0` to fail immediately instead of waiting.
86-
8776
= What does the plugin require? =
8877

8978
In addition to the WordPress and PHP versions listed above, the plugin requires the PDO SQLite PHP extension and SQLite 3.37.0 or newer. The setup screen also needs write access to the `wp-content` directory and will detect conflicting database drop-ins.

0 commit comments

Comments
 (0)