Hi -
First up, thanks for this great module - very useful.
Having one slight problem though as the twitter API doesn't return old tweets - so if you don't have any tweets in the past week or so, this module displays nothing.
The attached patch makes a few changes so new tweets can be merged with existing ones. It introduces a new variable TWITTER_PULL_REFRESH_DELAY - so you can control how often checks are made for new tweets without expiring items in the cache.
If you set TWITTER_PULL_REFRESH_DELAY to 20, and TWITTER_PULL_CACHE_LENGTH to 0, tweets will be permanently cached, and new items added to them.
Or if you set TWITTER_PULL_REFRESH_DELAY to 0, and TWITTER_PULL_CACHE_LENGTH to 20, the module will check for new tweets when the cache expires (so how it works now).
I hope that sounds OK and maybe a useful addition to this module?
Cheers,
Ben
Comment | File | Size | Author |
---|---|---|---|
#16 | twitter_pull-cachefix-716958-16.patch | 3.5 KB | Kleve |
#15 | twitter_pull-cachefix-716958-15.patch | 3.3 KB | Peter Törnstrand |
#12 | twitter_pull-cachefix-716958.patch | 3.57 KB | tinkerbelle |
#8 | twitter-pull-8.patch | 3.34 KB | Alan D. |
#2 | twitter_pull.patch | 4.32 KB | ben_scott |
Comments
Comment #1
irakli CreditAttribution: irakli commentedThis is a very interesting point. Thank you much for reporting. Will try to work something out as soon as I can.
Comment #2
ben_scott CreditAttribution: ben_scott commentedHi irakli
Sorry, I seem to have failed to attach the patch. Here it is...
Cheers,
Ben
Comment #3
sunchaser CreditAttribution: sunchaser commentedwould love to see this patch commited. lovely module , much needed patch ...
thanx for the hard work !
Comment #4
gennadiy CreditAttribution: gennadiy commentedHi Irakli,
Thank you so much for this needed module. Unfortunately I do have the very same problem with Twitter Pull module, so I assume that you didn't have time to make a fix yet. Also when you will have some more time for the Twitter Pull module if I could suggest to add Twitter Basic Auth and OAuth that will help those who are hitting rate limit for the anonymous calls as per this document:
http://dev.twitter.com/pages/rate-limiting
Thank you and Best Regards,
Gennady
Comment #5
arithmetric CreditAttribution: arithmetric commented@gennadiy,
I've created a new issue for your suggestion to add support for OAuth authentication: #893394: Add support for OAuth authentication
Comment #6
dmetzcher CreditAttribution: dmetzcher commentedHaving this issue as well. The tweets disappeared if they were older than a certain date (more than three or four weeks ago, it seems). I posted a new update to Twitter and that single update appeared via Twitter Pull, but none of the older tweets prior to that appeared.
Comment #7
Alan D. CreditAttribution: Alan D. commentedbump
Comment #8
Alan D. CreditAttribution: Alan D. commentedAn updated, but untested patch against 6.x-1
Comment #9
djschoone CreditAttribution: djschoone commentedwould love to see it in the release. Will test it right away!
Comment #10
djschoone CreditAttribution: djschoone commentedQuestion: where do i find the cached tweets in the database? Should there be a cache_pulled_tweets table?Wrong DB :(Comment #11
djschoone CreditAttribution: djschoone commented#716958-8: Old tweets disappear seems to work correctly
Comment #12
tinkerbelle CreditAttribution: tinkerbelle commentedThis is a crucial feature for a site I am working on with an infrequently updated Twitter feed, so I'm reviving this rather ancient issue. I'm currently testing an updated version of this patch, which seems to work fine so far, and would love to see this functionality added to the module!
I'm attaching my attempt at a proper patch against 7.x-2.x-dev, but I should note that I basically have no idea what I'm doing :)
Comment #13
bmunslow CreditAttribution: bmunslow commentedHi,
Sorry to revive the issue again, but are there any new improvements in this matter?
It'd be great to be able to store older tweets and merge them with the newer ones. The 1 week limit still applies and it is quite annoying to get empty twitter boxes...
The patch proposed in #12 does not apply to 7.x-2.0-alpha2 ...
Comment #14
axelpezzo CreditAttribution: axelpezzo commentedI really need to patch this bug. In my case the latest tweets about last month aren't display.
Comment #15
Peter Törnstrand CreditAttribution: Peter Törnstrand commentedRe-roll of patch from #12 against 7.x-2.0-alpha2+3-dev
Comment #16
Kleve CreditAttribution: Kleve at Happiness commentedUpdate of patch from #15 to print cached tweets.