data files caching fixces and improvments

Created on 22 June 2025, 15 days ago

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: πŸ› Deprecated function: Implicit conversion from float 19.5 to int loses precision Active .

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.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom egfrith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024