summaryrefslogtreecommitdiff
path: root/classes/diskcache.php
AgeCommit message (Collapse)Author
2023-10-25move to psr-4 autoloaderAndrew Dolgov
2023-10-20stop calling spans scopesAndrew Dolgov
2023-10-20jaeger-client -> opentelemetryAndrew Dolgov
2023-08-12fix basename() being passed a NULL valueAndrew Dolgov
2023-04-10a bit more diskcache tracingAndrew Dolgov
2023-04-09more tracingAndrew Dolgov
2023-04-09Tracer: rework options to tagsAndrew Dolgov
2022-12-19make phpstan happyAndrew Dolgov
2022-12-19 * bring back cache-busting for feed icons based on timestampAndrew Dolgov
* DiskCache: use singleton pattern to create less cache object instances * DiskCache: implement ETag
2022-11-26DiskCache: enforce basename() on filenames passed to cache adapterAndrew Dolgov
2022-11-24rework favicon storage to use DiskCacheAndrew Dolgov
2022-11-24DiskCache: tweak how expiration is invokedAndrew Dolgov
2022-11-24deprecate DiskCache->touch()Andrew Dolgov
2022-11-23update_rss_feed: use DiskCache to store feed dataAndrew Dolgov
2022-11-23 * split local cache implementation into a separate classAndrew Dolgov
* allow custom implementations provided by plugins
2022-11-12Address upcoming string interpolation deprecation.wn_
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
2022-08-12Switch to direct type declarations of class properties.wn_
2021-11-18Don't type DiskCache's $mimeMap.wn_
PHP typing of class properties is only supported on PHP 7.4+.
2021-11-15 * DiskCache: add download() helperAndrew Dolgov
* Af_Comics_Gocomics_FarSide: cache linked images because it seems to be required anyway
2021-11-12Switch class properties from PHP typing to PHPDoc for compatibility with PHP ↵wn_
< 7.4.0
2021-11-11Address PHPStan warnings in 'classes/diskcache.php'.wn_
2021-03-02* sanitize: never rewrite relative links to our own prefixAndrew Dolgov
* use Config::get_self_url() instead of get_self_url_prefix() in a bunch of places
2021-02-22migrate the rest into Config::Andrew Dolgov
2021-02-22wip: initial for config objectAndrew Dolgov
2021-02-19rename public.php/cached_url to cachedAndrew Dolgov
2021-02-15diskcache: unify namingAndrew Dolgov
2021-02-08move some old-style handlers to new callback onesAndrew Dolgov
2021-02-06fix some more warnings reported by phpstanAndrew Dolgov
2021-01-15pluginhost: load plugin data automatically (also marks load_data method as ↵Andrew Dolgov
private)
2020-11-04allow audio to be sent to client from the cacheJohn Aylward
2020-10-01hide uninteresting errors in several DOMDocument->loadHTML() invocationsAndrew Dolgov
2020-09-22remove a lot of stuff from global context (functions.php), add a few helper ↵Andrew Dolgov
classes instead
2020-09-15af_proxy_http: never print received data directly, always redirect to cached_urlAndrew Dolgov
cache/getUrl: basename() passed filename just in case
2020-09-14- fix multiple vulnerabilities in af_proxy_httpAndrew Dolgov
- fix vulnerability in rewrite_relative_url() which prevented some URLs from being properly absolutized - fetch_file_contents: validate all URLs before requesting them - validate URLs: explicitly whitelist http and https scheme, forbid everything else - DiskCache/cached_url: only serve whitelisted content types (images, video) - simplify filename/URL handling code, remove and consolidate some less-used functions
2020-06-15better support for image srcset attributes as discussed in ↵Andrew Dolgov
https://community.tt-rss.org/t/problem-with-img-srcset/3519
2020-05-12DiskCache: append fake file extension when sending cached files based on ↵Andrew Dolgov
mime type to make saving files easier
2020-04-29DiskCache: properly deal with srcset attributesAndrew Dolgov
2020-03-12add support for video[@src] in media cachelllusion3418
it's a valid alternative to a source[@src] child element: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
2020-03-12fix url rewriting for videos with poster and srclllusion3418
if a poster attribute was present only that would have been rewritten and the (arguably more important) src attribute would be left as-is
2019-08-15DiskCache::rewriteUrls() - remove img[@srcset]Andrew Dolgov
2019-08-14consistency: use DiskCache->exists() to check for present filesAndrew Dolgov
2019-08-14DiskCache: more strict checking for input filenames, getUrl() is no longer ↵Andrew Dolgov
static
2019-08-13* HOOK_ENCLOSURE_ENTRY: pass article_id to handlerAndrew Dolgov
* DiskCache: multiple fixes; support isWritable() for cache entries, set content-disposition for send() * public/cached_url: allow selecting files from sub-caches other than images * plugins/Cache_Starred_Images: rework to use DiskCache, can be enabled per-user, properly handles article enclosures, etc
2019-08-13DiskCache::expire: support .no-auto-expiry to prevent automatic cache ↵Andrew Dolgov
maintenance
2019-08-13expire_cached_files to DiskCache::expire()Andrew Dolgov
2019-08-13move rewrite_cached_urls to DiskCache::rewriteUrls()Andrew Dolgov
2019-08-13add DiskCache.getUrl() and use it in a bunch of placesAndrew Dolgov
2019-08-13add DiskCache.send; switch af_zz_imgproxy to use DiskCacheAndrew Dolgov
2019-08-13add DiskCache.isWritableAndrew Dolgov
2019-08-13add classes/diskcacheAndrew Dolgov