Support » Plugin: Twitter Widget Pro » Is there a way to have different caches for each setting

  • Resolved steveax2


    I am using your widget on a site that has about 30 different occurances of the widget (using shortcodes) each for a different user… so I have a page per user and the short code for that use grabbing tweets… the caching as it stands now really won’t help me with the 150 limit… I need to have a different cache for each user…

    Is that possible?

    Also, where does the cache get stored?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aaron D. Campbell


    It does cache per user, but you’re right, you’ll use all the API requests for your entire IP (including other sites on your server) in less than an hour. The cache should still work, and you should still see whatever Tweets were last pulled for each user, but once the limit hits you won’t be able to update anymore (again, neither will anyone else on your server/cluster) until the limit resets.

    My plan is to bump up the delay to 20-30 minutes… but the way I understand it is that when you switch from one user page to another the cache will reset no matter what.. is that not correct?

    For example.. If I change the delay to 1800 (30 minutes) then if you go to user A.. the cache pulls new from twitter… then you go to User B and the cach pulls new from twitter.. then you back to user A (within the 30 minute window) and the cache will again pull from user A.. is that correct?

    Where is the cache located?

    Plugin Author Aaron D. Campbell


    The cache is actually stored as options in the options table. The cache is based off what is actually requested from Twitter, so if you ‘re making three different requests (different users for example) there will be three different options at any given time with that data. The cache will not be invalidated when a different request it made, it will just create a new cache.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is there a way to have different caches for each setting’ is closed to new replies.