Skip to content

Commit

Permalink
chore: prepare 2023-09-24 release (#3703)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan authored Sep 24, 2023
1 parent f321f00 commit 857e908
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 232 deletions.
4 changes: 2 additions & 2 deletions caches/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function get(string $key, $default = null)
$this->delete($key);
return $default;
}
$expiration = $item['expiration'];
$expiration = $item['expiration'] ?? time();
if ($expiration === 0 || $expiration > time()) {
return $item['value'];
}
Expand Down Expand Up @@ -92,7 +92,7 @@ public function prune(): void
unlink($cacheFile);
continue;
}
$expiration = $item['expiration'];
$expiration = $item['expiration'] ?? time();
if ($expiration === 0 || $expiration > time()) {
continue;
}
Expand Down
4 changes: 4 additions & 0 deletions caches/SQLiteCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ public function __construct(
$this->db = new \SQLite3($config['file']);
$this->db->enableExceptions(true);
$this->db->exec("CREATE TABLE storage ('key' BLOB PRIMARY KEY, 'value' BLOB, 'updated' INTEGER)");
// Consider uncommenting this to add an index on expiration
//$this->db->exec('CREATE INDEX idx_storage_updated ON storage (updated)');
}
$this->db->busyTimeout($config['timeout']);

// https://www.sqlite.org/pragma.html#pragma_journal_mode
$this->db->exec('PRAGMA journal_mode = wal');

// https://www.sqlite.org/pragma.html#pragma_synchronous
$this->db->exec('PRAGMA synchronous = NORMAL');
}
Expand Down
53 changes: 0 additions & 53 deletions contrib/prepare_release/fetch_contributors.php

This file was deleted.

151 changes: 0 additions & 151 deletions contrib/prepare_release/rssbridge-log-helper.el

This file was deleted.

23 changes: 0 additions & 23 deletions contrib/prepare_release/template.md

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
final class Configuration
{
private const VERSION = 'dev.2023-07-11';
private const VERSION = '2023-09-24';

private static $config = [];

Expand Down
2 changes: 2 additions & 0 deletions lib/RssBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public function __construct()
if ((error_reporting() & $code) === 0) {
return false;
}
// In the future, uncomment this:
//throw new \ErrorException($message, 0, $code, $file, $line);
$text = sprintf(
'%s at %s line %s',
sanitize_root($message),
Expand Down
12 changes: 10 additions & 2 deletions templates/frontpage.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@
<?= raw($bridges) ?>

<section class="footer">
<a href="https://github.com/rss-bridge/rss-bridge">RSS-Bridge ~ Public Domain</a><br>
<p class="version"><?= e(Configuration::getVersion()) ?></p>
<a href="https://github.com/RSS-Bridge/rss-bridge">
https://github.com/RSS-Bridge/rss-bridge
</a>

<br>
<br>

<p class="version">
<?= e(Configuration::getVersion()) ?>
</p>

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

Expand Down

0 comments on commit 857e908

Please sign in to comment.