These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Api caching

Author
DaemoN Eleuel
SteppenWolves
#1 - 2014-05-08 12:32:30 UTC
Hello,

while developing my own piece of software I found myself in need of a caching that would prevent me from hitting the api servers too much.
I am willing to share the code if needed, it appears to be working nicely and is rather simple.
If anyone is interested just post here.

It is just a pair of pages in php that save the xml content in the database and fetches it from there instead of the api servers until the cacheduntil times is gone, so no rocket science, but it appears to be working fine in my case.
Louis Vitton
Viziam
Amarr Empire
#2 - 2014-05-09 09:34:32 UTC
Are you saying the data direct to the database from the API and then just use the database as the reference for your application?
DaemoN Eleuel
SteppenWolves
#3 - 2014-05-09 11:00:07 UTC
yes, it's not fancy, I just use it to prevent flooding the CCP servers with requests
Peter Powers
Terrorists of Dimensions
HORSE-KILLERS
#4 - 2014-05-09 13:41:50 UTC
why don't you use PhealNG, which comes with replaceable caching already? (and will as soon as phpfig gets their sh.t together also support PSR-4 caching (https://github.com/php-fig/fig-standards/pull/149))

https://github.com/3rdpartyeve/phealng



regards,
PP

3rdPartyEve.net - your catalogue for 3rd party applications

DaemoN Eleuel
SteppenWolves
#5 - 2014-05-12 14:51:08 UTC
I just needed something fast to make sure I didn't get blacklisted. I don't really need access to many different pages, at least for now, or more elegant solutions.
Especially since I plan and prefer to try and use CREST whenever possible.

Anyway I am almost done with the testing, it's just a few pages but I'll pack them up and make them available.