Hello fellow coders. What I’m trying to do is make a call to an API, cache the results and potentially it again. The Mindbody API only allows one concurrent call. I asked on Stackoverflow: http://stackoverflow.com/questions/31466667/block-until-api-result-cached-then-re-instantiate-api-class Using a I am using wordpress
Now there are two separate cached versions of the API result. But this is not a working solution for many reasons. From my limited understanding of how php works, all of the "page code" is interpreted and compiled as C code, then run at the same time. Is this correct? Is there some way to make a class with a method that will:
For each time it is called within a page? Maybe something along these lines:
I’m thinking running multiple API queries with AJAX might be an answer, but sending information back and forth from the browser multiple times doesn’t seem quite right. It’s a wordpress plugin so that limits the possibilities in ways - like calling a sub-process to C or python or something wouldn’t work. Any thoughts? Thanks. Mike |
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail