Dynamic Function and Kirby Caching

We are using kirby caching to speed up our site. So far so good.

I have now written a little page loggin script, that logs each page request in a log file. I know there are apache access log files, but they produce a lot of data (eg. each css file, each image and so on will be indivudally logged). Also our provider makes the log files available only 24h later, so there can’t be any real time action.

Would it be necessary to hook this looging function somewhere in the kirby core? I would certainly prefer to make a plugin that could deal with my wanted behavior.

I would suggest using AJAX for triggering the log action. This way you could still use the file cache, but log each page visit.

1 Like

thanks - that seems to be a good idea.