Page 1 of 1

Reward Plugin + Document viewer plugin Counting problem

Posted: Tue Jun 13, 2017 12:09 am
by djeffalrami6131
Hi,
I detected that when using document viewer, PPD is counted basing on google servers (USA +CA) and counting it again when user download it. This is an example of the log

===========================================================
2017-06-13 00:03:36 - Request received to log PPD. (origin: file.class.php, use_download_complete_callback = 0) FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php FileOwnerId: 0
2017-06-13 00:03:36 - User IP: 66.249.93.219. Nothing found for this IP and file in the last 24 hours. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - User country: US. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Found country group id: 1. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Failed finding reward amount based on country group and filesize boundaries but found at upper end: CountryGroupId: 1. Reward: 8.00. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Reward / 1000 = 0.008. CountryGroupId: 1. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Completed checks for limitations. Status: pending RewardAmount: 0.008. 1. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - PPD logged (pending @ 0.008. Country: US). FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Using Nginx XAccelRedirect to send the file to the user.
===========================================================

Also is there any way how to set the reset period to more than 24 hours, because when the same IP download the same file the day after it will count normally which I don't want. I want to expand this period to one week

Thank you