Skip to content

Implement visit counter #450

Open
Open
@following5

Description

@following5

All OC sites have a per-cache "visit counter" (page view counter), which should be updated when a cache listing is presented to the user.

OCPL simply increments this counter on each request of viewcache.php. OCDE increments it through an Ajax request when the viewcache output is displayed in the web browser, and eliminates duplicate views by the same user or IP within 24 hours.

OKAPI currently does not update the counter. I think we need an new method for that, which should be called by the application each time a cache description is presented to the user. Then it can update the view counters in the same way the OC site does.

E.g. services/caches/viewed?cache_code=... with auth level 1.

There would be some potential for misusing this feature, especially on OCPL sites. Maybe some protection should be added; I would prefer a complete logging which allows later analyzis and correction, but may create vast data amounts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions