Posts: 7
Threads: 3
Joined: May 2013
2013-05-15, 20:01:46
(This post was last modified: 2013-05-15, 20:04:17 by open_code.)
Hi all,
I discovered GetSimple 2 day ago, so i decided to collaborate and develop a plugin. My first plugin is
Last Hastag and it can show in your sidebar the last tweets about an hashtag that you decide in administration section.
I hpe this can be usefull for someone!
Posts: 6,266
Threads: 181
Joined: Sep 2011
Posts: 7
Threads: 3
Joined: May 2013
Hi shawn_a,
This is my first plugin and there is something I don't know, yet.
Why is usefull to caching this plugin? How can do this?
Posts: 6,266
Threads: 181
Joined: Sep 2011
Regarding the twitter results. I did not look to see where they come from, if this is a twitter widget then nevermind.
If you are not storing this in a cache first, then every page visit is hitting twitter, I am not not sure what there api policy is but most throttle requests, even if they do not, it could cause slowdowns since every page is calling out to another site. Even a short time limit cache would alleviate this.
On a small site it probably wouldn't be an issue.
Posts: 7
Threads: 3
Joined: May 2013
(2013-05-16, 01:39:55)shawn_a Wrote: Regarding the twitter results.
If you are not storing this in a cache first, then every page visit is hitting twitter, I am not not sure what there api policy is but most throttle requests, even if they do not, it could cause slowdowns since every page is calling out to another site. Even a short time limit cache would alleviate this.
On a small site it probably wouldn't be an issue.
So, you are telling me to set a "retard time" so the plugin doesn't call twitter api every time user refresh/change the page?
Posts: 6,266
Threads: 181
Joined: Sep 2011
Posts: 7
Threads: 3
Joined: May 2013
(2013-05-16, 03:16:12)shawn_a Wrote: and to cache the results locally.
https://dev.twitter.com/docs/rate-limiting/1.1
Ok. I will do it. Thanks for idea.