CounterpartyXCP / counterparty-core

Counterparty Protocol Reference Implementation
http://counterparty.io
MIT License
287 stars 206 forks source link

Skip Cache Flag for API (?) #2314

Open adamkrellenstein opened 1 month ago

ouziel-slama commented 1 month ago

It sounds a little weird to me :-) Generally, it's the responsibility of the server to decide when to use the cache (for DDoS attacks, for example). Also, if the cache is well-implemented on the server side, you should never see a difference as a client !

adamkrellenstein commented 1 month ago

Yeah this is just for debugging purposes... Not sure what the best soln is though.

adamkrellenstein commented 1 month ago

The cache is global, so it is weird for one user to be able to bypass it. (Would the cache be updated in that case?)

ouziel-slama commented 1 month ago

yep! when a user does not use a cache he penalizes other users by consuming more server resources for the same result.. this is not serious when there are few users but it remains strange that a user can decide to make a server work more :) (in that case we can decide to update the cache or not)