Currently the datafiles cache contains file names from all sites on the server, regardless of the value of bawstats_admin_access.
Also, there are some errors in bawstats.data.inc, spotted in this issue: #3531406: Deprecated function: Implicit conversion from float 19.5 to int loses precision.
This patch (1) incorporates these changes; (2) prevents files from other sites entering the cache when bawstats_admin_access=0; and (3) clears datafiles and servers caches if bawstats_admin_access is changed.
Comments
Comment #3
egfrith commentedComment #4
egfrith commentedComment #5
bisonbleu commentedI've been running the latest dev version for a few days and I'm not seeing any regressions and/or errors. But I'm not exactly sure how one would validate this… ?
Setting to RTBC. Feel free to change status if required.
Comment #6
egfrith commentedThanks for testing this patch @bisonbleu - now closing issue with credit.