[DBTech] DragonByte Credits

[DBTech] DragonByte Credits [Paid] 7.3.3

No permission to buy (€14.95)
what about XFRM? I did try to download the same resource 5 times, triggers 5 times as well!
how to make to trigger once only for the same user? even he downloads 100 times in this minute or in this day

problem is we grant credits for resources, owner who uploaded files, they get credits if someone downloaded them, but some unfair users want to cheat us, from other created accounts they press download several times to inflate credits.

aim is: if user downloaded resource once, next dowloading the same content must not be counted
 

Attachments

  • res.webp
    res.webp
    26.1 KB · Views: 1
what about XFRM? I did try to download the same resource 5 times, triggers 5 times as well!
how to make to trigger once only for the same user? even he downloads 100 times in this minute or in this day

problem is we grant credits for resources, owner who uploaded files, they get credits if someone downloaded them, but some unfair users want to cheat us, from other created accounts they press download several times to inflate credits.

aim is: if user downloaded resource once, next dowloading the same content must not be counted
XFRM also does not have a log table for this, sorry.
 
DragonByte Tech updated [DBTech] DragonByte Credits with a new update entry:

7.3.3

Update highlights​

This version brings a slew of bug fixes thanks to automated testing.

Please see the full changelog below for information about the bugs fixed in this version.


Complete Change Log​

Fix: New currencies now get their Adjust event straight away instead of on their next save
Fix: Deleting an event with a custom title now shows that title in the clean-up progress
Fix: Checking a charge tag purchase no longer fails...

Read the rest of this update entry...
 
We have DBTech Credits enabled, and we don’t use its paid thread access feature. While investigating high PHP-FPM CPU usage, we found that ordinary thread views accounted for the largest share of elapsed request time in our Apache sample.

In the Credits extension to XF\Pub\Controller\ThreadController, assertViewableThread() adds ContentAccessCurrency to the thread fetch for all visitors and ContentAccessPurchases for signed-in visitors before checking whether the thread has an access cost. We haven’t measured how much overhead this adds.

Could you confirm whether there’s a supported way to turn off the paid thread access checks while keeping the rest of Credits enabled? If there’s no setting for that, could the extension skip those relation loads on free threads and fetch them only when a thread requires payment?

If a newer release already handles this, please let me know which version includes the change.
 
We have DBTech Credits enabled, and we don’t use its paid thread access feature. While investigating high PHP-FPM CPU usage, we found that ordinary thread views accounted for the largest share of elapsed request time in our Apache sample.

In the Credits extension to XF\Pub\Controller\ThreadController, assertViewableThread() adds ContentAccessCurrency to the thread fetch for all visitors and ContentAccessPurchases for signed-in visitors before checking whether the thread has an access cost. We haven’t measured how much overhead this adds.

Could you confirm whether there’s a supported way to turn off the paid thread access checks while keeping the rest of Credits enabled? If there’s no setting for that, could the extension skip those relation loads on free threads and fetch them only when a thread requires payment?

If a newer release already handles this, please let me know which version includes the change.
I haven’t measured it either, but I can assure you that the overhead for a lookup for an empty table is very small indeed ;)

If you’re using DragonByte Shop as well, it’s more likely that its latest update would improve thread view performance by reducing the amount of queries being ran.
 
  • Like
Reactions: Maa
Back
Top Bottom