Commit Graph

29 Commits (c1cd3324e3986967d4210e6e36bf068417b7cd13)

Author SHA1 Message Date
Andrew Dolgov 211f699aa0 migrate the rest into Config:: 4 years ago
Andrew Dolgov b888bc2091 cache_starred_images: don't try to use undefined array index 4 years ago
Andrew Dolgov 6ecee2abbd cache_starred_images: minor fixes 4 years ago
Andrew Dolgov 166f2d4666 diskcache: unify naming 4 years ago
Andrew Dolgov 7874f6ac58 remove PHPMD.UnusedFormalParameter 4 years ago
Andrew Dolgov 38a7a1da88 hide uninteresting errors in several DOMDocument->loadHTML() invocations 4 years ago
Andrew Dolgov 74568df4ff remove a lot of stuff from global context (functions.php), add a few helper classes instead 4 years ago
Andrew Dolgov c34726b2b2 consistency: use DiskCache->exists() to check for present files 5 years ago
Andrew Dolgov 6914ad1f74 retire MIN_CACHE_FILE_SIZE 5 years ago
Andrew Dolgov 3c075bfd21 DiskCache: more strict checking for input filenames, getUrl() is no longer static 5 years ago
Andrew Dolgov fdb6066bf6 * HOOK_ENCLOSURE_ENTRY: pass article_id to handler
* 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
5 years ago
Andrew Dolgov 088fcf8131 move more globals to more appropriate places
set libxml to always use internal errors
6 years ago
Andrew Dolgov 671f4cee65 domdocument: remove old meta charset unicode hacks, replace with shorter xml preamble utf8 hack (on loadhtml where it makes sense)
af_readability: better (?) charset hack for non-unicode pages
6 years ago
Andrew Dolgov c10a43069e debug logging system rework:
* support various logging levels per-message
 * remove hacks like debug_suppress, DAEMON_EXTENDED_DEBUG, etc
 * _debug() is kept as a compatibility shim for plugins
6 years ago
Andrew Dolgov 758752684c cache_starred_articles: limit maximum amount of download attempts per-article, consider cache operation a success even if all images were too small (prevents repeated requests) 6 years ago
Andrew Dolgov b14f6d58b4 implement hard limits on downloaded data size for general fetching and cache plugins: MAX_DOWNLOAD_FILE_SIZE & MAX_CACHE_FILE_SIZE 7 years ago
Andrew Dolgov 96930889dd plugins/cache_starred_images: use PDO 7 years ago
Andrew Dolgov 8b73bd28d8 remove apache-specific x-sendfile stuff
implement a hook (HOOK_SEND_LOCAL_FILE) which plugins may use to send files
via httpd-specific implementation to increase performance typically on larger files
7 years ago
Andrew Dolgov 6fd0399694 tunables:
* add CACHE_MAX_DAYS as a tunable generic expiry interval for various cached files
* add some comments to tunables in functions.php
* rename _MIN_CACHE_FILE_SIZE to MIN_CACHE_FILE_SIZE
* respect MIN_CACHE_FILE_SIZE setting in a few more places where content is cached
8 years ago
Andrew Dolgov 21ce7d9ec0 update phpmd ruleset to use (subset) of cleancode
fix various minor issues reported by static analysis
remove redundant php closing tag from several more files
8 years ago
Andrew Dolgov 5edd605ae1 image cache: do not try to cache data: schema urls; add caching of html5 video content (similar to cache_starred_images plugin) 8 years ago
Andrew Dolgov c203486e04 cache_starred_images: set filename when sending cached image 9 years ago
Andrew Dolgov 88bf000f8d cache_starred_images: also handle html5 mp4 video files 10 years ago
Andrew Dolgov 95ebe737bd cache_starred_images: route images to public.php 10 years ago
Andrew Dolgov 849c66b783 remove ob_clean/flush shit as unneeded hacks from cached image output routines 10 years ago
Andrew Dolgov ae3851b1b5 discard gzipped buffer in cache starred image sender method 11 years ago
Andrew Dolgov f5967cf825 cache starred: only try to chmod cache directory if it is not writable 11 years ago
Andrew Dolgov 4e5ddeafa6 make cache starred plugin use hook_house_keeping 11 years ago
Andrew Dolgov 910592b49a add plugin to cache images in starred articles; pass article_id to
sanitize
11 years ago