Twitter Widget Pro
[resolved] Is there a way to have different caches for each setting (4 posts)

  1. steveax2
    Posted 3 years ago #

    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?



  2. Aaron D. Campbell
    Plugin Author

    Posted 3 years ago #

    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.

  3. steveax2
    Posted 3 years ago #

    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?

  4. Aaron D. Campbell
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Twitter Widget Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.