Skip to content

Commit 857e908

Browse files
authored
chore: prepare 2023-09-24 release (RSS-Bridge#3703)
1 parent f321f00 commit 857e908

8 files changed

+19
-232
lines changed

caches/FileCache.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function get(string $key, $default = null)
3636
$this->delete($key);
3737
return $default;
3838
}
39-
$expiration = $item['expiration'];
39+
$expiration = $item['expiration'] ?? time();
4040
if ($expiration === 0 || $expiration > time()) {
4141
return $item['value'];
4242
}
@@ -92,7 +92,7 @@ public function prune(): void
9292
unlink($cacheFile);
9393
continue;
9494
}
95-
$expiration = $item['expiration'];
95+
$expiration = $item['expiration'] ?? time();
9696
if ($expiration === 0 || $expiration > time()) {
9797
continue;
9898
}

caches/SQLiteCache.php

+4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ public function __construct(
3737
$this->db = new \SQLite3($config['file']);
3838
$this->db->enableExceptions(true);
3939
$this->db->exec("CREATE TABLE storage ('key' BLOB PRIMARY KEY, 'value' BLOB, 'updated' INTEGER)");
40+
// Consider uncommenting this to add an index on expiration
41+
//$this->db->exec('CREATE INDEX idx_storage_updated ON storage (updated)');
4042
}
4143
$this->db->busyTimeout($config['timeout']);
44+
4245
// https://www.sqlite.org/pragma.html#pragma_journal_mode
4346
$this->db->exec('PRAGMA journal_mode = wal');
47+
4448
// https://www.sqlite.org/pragma.html#pragma_synchronous
4549
$this->db->exec('PRAGMA synchronous = NORMAL');
4650
}

contrib/prepare_release/fetch_contributors.php

-53
This file was deleted.

contrib/prepare_release/rssbridge-log-helper.el

-151
This file was deleted.

contrib/prepare_release/template.md

-23
This file was deleted.

lib/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
final class Configuration
2121
{
22-
private const VERSION = 'dev.2023-07-11';
22+
private const VERSION = '2023-09-24';
2323

2424
private static $config = [];
2525

lib/RssBridge.php

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public function __construct()
3030
if ((error_reporting() & $code) === 0) {
3131
return false;
3232
}
33+
// In the future, uncomment this:
34+
//throw new \ErrorException($message, 0, $code, $file, $line);
3335
$text = sprintf(
3436
'%s at %s line %s',
3537
sanitize_root($message),

templates/frontpage.html.php

+10-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@
2929
<?= raw($bridges) ?>
3030

3131
<section class="footer">
32-
<a href="https://github.com/rss-bridge/rss-bridge">RSS-Bridge ~ Public Domain</a><br>
33-
<p class="version"><?= e(Configuration::getVersion()) ?></p>
32+
<a href="https://github.com/RSS-Bridge/rss-bridge">
33+
https://github.com/RSS-Bridge/rss-bridge
34+
</a>
35+
36+
<br>
37+
<br>
38+
39+
<p class="version">
40+
<?= e(Configuration::getVersion()) ?>
41+
</p>
3442

3543
<?= $active_bridges ?>/<?= $total_bridges ?> active bridges.<br>
3644

0 commit comments

Comments
 (0)