I have a few apps developed over a period of time and suspect that some of them are not being used. Question: is possible to log (database?) every time a page is running and by whom?
m
Mark Takata (Adobe)
05/05/2023, 4:47 PM
Sure. There's lots of ways to do this. Easiest would be to add a database write call to onApplicationStart() in the app's application.cfc. Just be sure that:
1. All applications have unique application names
2. They're actually using application.cfc and not application.cfm (the .cfm version loads every time for everything in the folder it lives in and underneath).
Mark Takata (Adobe)
05/05/2023, 4:48 PM
By whom might be tougher unless you have the login info (you wouldn't normally if you're running this on application start). What you don't want to do is to write to the database on every single page in every app. It is a huge increase in load and will fill a db very quickly.
Mark Takata (Adobe)
05/05/2023, 4:48 PM
You could also try to use the Performance Monitoring Tool to review which pages are being hit and how often.
e
epipko
05/05/2023, 4:53 PM
Thanks Mark
r
Ryan Albrecht
05/05/2023, 4:53 PM
FusionReactor could help with this aswell
➕ 1
c
cfvonner
05/05/2023, 4:55 PM
There's also the web server logs - could aggregate the logs to get last time each unique URL is hit