filesafe/controllers
Bobby Wibowo 5c41fc9249
Updates
utilsController.js:
+ /api/stats: Cache invalidation requests will now only store timestamp
of the request instead of purging the cache entirely.
Subsequent requests to the API will no longer attempt to generate stats
if a previous request before it is still generating, since it can
take a while in big sites.
So instead, the cached stats will be returned to them, regardless of
whether it's still valid.
This should avoid "race condition" in sites with multiple admins.

* dashboard.js:
+ Added an appendix into "Delete by names" feature in dashboard to
inform staffs that they can use the feature to delete files by other
users as well.
+ Added comments explaning the need of page.domClick() function.
+ Addition to the change regarding /api/stats route: If there is no
cached stats, but a previous request is still generating, inform
the user about it.

config.sample.js + lolisafe.js:
+ We now support configuring rate limits through config file.
No more hard-coded rate limits.
Don't forget to update your config.js accordingly.

package.json + yarn.lock:
+ Updated dependencies.
2019-06-04 02:40:24 +07:00
..
albumsController.js Re-worked caching for statistics 2019-04-12 07:45:33 +07:00
authController.js Re-worked caching for statistics 2019-04-12 07:45:33 +07:00
permissionController.js Updated ESLint rule: curly 2018-12-19 00:01:28 +07:00
tokenController.js Updated ESLint rule: curly 2018-12-19 00:01:28 +07:00
uploadController.js Updates 2019-04-18 16:06:14 +07:00
utilsController.js Updates 2019-06-04 02:40:24 +07:00