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

70 Like 49 Dislike
Previous php-forum Next php-forum
Other php-forum

Taking an HTML form and a PHP program and making it into one working file.
Hello,

So I would like to display everything INSIDE a specific directory. In other words, I

Local file browser with php
Halo..

So this is what i want to create. I have a folder that i share and it has many movies.

update the selected existing records of database
Hi frndz,
I am new to php and get stuck....

Edit.php > Update.php > Updatea

Help If user voted, block them
On my Prayer request site, i let users Click a button to Pray for somone that has posted a pray, i g

Strip Slashes Help
I've got a script that i've downloaded of the net to edit multiple fields from my sql database, and

Preg_match unknown modifyer
Hello,

Im trying to write a little script for my forums i need to get the reply from my forum

echo $rows help
Hi all,

Hopefully something simple that I don't know!

I have this:

Code: [Selec

Placing and array within an array then sorting it!
I have a page that runs two large mysql queries and saves the results into arrays, in php I then per

Windows 7
Windows 7 default user account control worries experts. Corporate IT departments should be pleased w

Stopped working!
So I had to change some stuff, none of it major. Stuff like the extension_dir and such. BEFORE I did

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