Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Commit

Permalink
🐛 removed locking since any exception would break db
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Sep 5, 2020
1 parent c59b8b9 commit 753203d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-page-sqlite",
"type": "kirby-plugin",
"version": "1.2.0",
"version": "1.2.1",
"description": "Kirby 3 Plugin to cache the content file using SQLite",
"license": "MIT",
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
'PRAGMA main.cache_size = 10000;',
'PRAGMA case_sensitive_like = false',
'PRAGMA main.auto_vacuum = INCREMENTAL;',
'PRAGMA main.locking_mode = EXCLUSIVE;',
'PRAGMA main.page_size = 4096;',
'PRAGMA temp_store = MEMORY;',
];
if (SQLite3::version() >= 3007001) {
return array_merge($defaults, [
// 'PRAGMA main.locking_mode = EXCLUSIVE;',
'PRAGMA main.synchronous = NORMAL;',
'PRAGMA main.journal_mode = WAL;',
]);
Expand All @@ -38,7 +38,7 @@
return array_merge($defaults, [
'PRAGMA main.wal_checkpoint(TRUNCATE);',
'PRAGMA main.synchronous = NORMAL;',
'PRAGMA main.locking_mode = NORMAL;',
//'PRAGMA main.locking_mode = NORMAL;',
]);
} else {
return array_merge($defaults, []);
Expand Down

0 comments on commit 753203d

Please sign in to comment.