Elgg/Elgg — pull request #364 by mrclay (2012-08-12 04:11:45+00:00)
Title: Simplecache improvements: file streaming, plugin hook, DB bypass

Uses readfile() for disk to output streaming (significantly faster when tested for Minify). Adds plugin hook trigger before saving to disk with hook type designed to ease targeting CSS/JS views. Allows bypassing DB if $CONFIG has dataroot & simplecache_enabled.

Next steps:
* Add Minify processors, register handlers for simplecache CSS/JS
* Use a file in dataroot to indicate simplecache enabled (instead of DB), allows simply setting dataroot in CONFIG to get benefit of bypassing DB for cache serving.