• Hi,

    This is my first post, so go easy on me πŸ™‚

    I’m querying the twitter API, and want to use the transient facility to store the data I receive so that I’m not calling the API continually on each page load.

    The problem I appear to be having is that I have an array with objects and values coming from the twitter API, but the transient stores it as a string, so when I pull those values out using the get transient, I’m no longer able to manipulate this data as an array (which I need to be able to loop through the tweets).

    Is there a way for me to store and retrieve the data so that I can use it too loop through a list of tweets? Is there a conversion I can do before the data is stored??

    Thanks for looking.

Viewing 1 replies (of 1 total)
  • Thread Starter GoldSmyth

    (@goldsmyth)

    It also says on the documentation for ‘set transient’ that…

    “You do not need to serialize values. If the value needs to be serialized, then it will be serialized before it is set.”

    So, I thought I would unserialize the data coming out. Yet when I go to unserialize the data from the get_transient, I get an error reading

    “Notice: unserialize(): Error at offset 23066 of 23106 bytes”

Viewing 1 replies (of 1 total)

The topic ‘set_transient issue’ is closed to new replies.