1
0
Fork 0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-03-16 05:04:05 +03:00
rss-bridge/caches
Dag 0a118310cb
fix(sqlitecache): store blob as blob ()
serialize() can return output with null bytes and other
non-text data. The prior behavior truncated data
which later results in unserialize() errors.

This happens when e.g. caching an object with a private field
or when caching e.g. a JPEG file (starts with 0xFFD8FFE1)

Fixes errors such as e.g.:

unserialize(): Error at offset 20 of 24 bytes at caches/SQLiteCache.php line 51
2023-07-20 19:11:13 +02:00
..
FileCache.php refactor(cache): extract and encapsulate cache expiration logic () 2023-07-19 05:05:49 +02:00
MemcachedCache.php fix(memcached): do not flush entire cache, oops () 2023-07-19 05:18:26 +02:00
NullCache.php refactor(cache): extract and encapsulate cache expiration logic () 2023-07-19 05:05:49 +02:00
SQLiteCache.php fix(sqlitecache): store blob as blob () 2023-07-20 19:11:13 +02:00