How to limit the calls to an API


Posted on 16th Feb 2014 07:03 pm by admin

Hello, in my simple script I call an api which effectively involves me getting an xml file.

However the problem is everytime I get a visitor to the webpage it calls the API which means lots of wasteful calls to the API as the data their end isn't updated more than once an hour or something.

I know how to cache and retrieve the data but what command/s are used to tell my server only to call the API every hour and thus update the cache?

Thanks

No comments posted yet

Your Answer:

Login to answer
70 Like 49 Dislike
Previous forums Next forums
Other forums

Fatal error: Call to a member function fetchrow() on a non-object in C:xamppht
okay i have this query and everytime i add `item_id`=? to it... it gives me the error in the title..

sapgui f4 help last search
I know this has to be simople. One user (maybe more) does not have the "last search saved" from the

help with calculations on a flat text file
hello,
I have this code below that is attached to a flat file like this:
Email:LastName:FirstN

Libraries in C++
Hi all,

I have two libraries. one is based targeted on linux platform and uses another li

need help in update query
i create a form for update. there are 8 columns in my mysql table. on my main page all the data is r

Uploading Filetypes and placing them in seperate folders.
Hello,

first post , and asking for help im afraid. Very new to PHP, was making good progress

count only commas outside parenteses
I have a sql table containing
id - query - query name
the first page contains a drop down men

HTML Email rec'd as Source Code
The code does create and send the email successfully. However, the message shows as html code and n

Cloud Computing?
Hello,

I was wondering if anyone could help explain this term to me. I'm starting to hear it

Please help understand this code
I noticed the index page on my site was modified this morning and found this code inserted at the bo

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash