New geocache config flag anomymousVisitsCounted to enable or disable counting visits from not logged-in visitors. Now it is independent from coordsHiddenForNonLogged
New geocache config setting uniqueVisitPeriod allowing to configure period (time range) in seconds of cache visits being counted as a one visit for a particular cache. It was hardcoded before in CacheVisits class to a one week. Now hardcoded is a minimal allowed period, one hour.
Replacement of XDb in CacheVisits with OcDb.
Replacement of NOW() - period_in_seconds with NOW() - INTERVAL period_in_seconds SECOND in SQLs to better compare passed time.
php-cs style improvements of most modified files.
NOT includes:
php-cs style improvements of src/Model/GeoCache/GeoCache.php: too much work to do
Includes:
anomymousVisitsCounted
to enable or disable counting visits from not logged-in visitors. Now it is independent fromcoordsHiddenForNonLogged
uniqueVisitPeriod
allowing to configure period (time range) in seconds of cache visits being counted as a one visit for a particular cache. It was hardcoded before inCacheVisits
class to a one week. Now hardcoded is a minimal allowed period, one hour.XDb
inCacheVisits
withOcDb
.NOW() - period_in_seconds
withNOW() - INTERVAL period_in_seconds SECOND
in SQLs to better compare passed time.NOT includes:
src/Model/GeoCache/GeoCache.php
: too much work to do