[Release] Common plugin cache

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Bstrdsmkr Offline
Posting Freak
Posts: 802
Joined: Oct 2010
Reputation: 16
Post: #16
just wanted to report in, (unfortunately I didn't get a log) I had trouble creating a cache table with the name containing a "."

Changing the cache.table_name and deleting the db file fixed it. It's worth noting that just changing the name wasn't enough, I had to delete the db for it to create the table. The original name I tried to use was 1channel.ch

I know it's not much to go on, but hopefully it'll help someone in the future Big Grin
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 4
Post: #17
Bstrdsmkr Wrote:just wanted to report in, (unfortunately I didn't get a log) I had trouble creating a cache table with the name containing a "."

Changing the cache.table_name and deleting the db file fixed it. It's worth noting that just changing the name wasn't enough, I had to delete the db for it to create the table. The original name I tried to use was 1channel.ch

I know it's not much to go on, but hopefully it'll help someone in the future Big Grin

Fixed in trunk.
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 4
Post: #18
Pull requests have been sent for 0.9.1.

The updated version should land in the Eden repository soonish.
find quote
Martijn Offline
Team-XBMC
Posts: 10,241
Joined: Jul 2011
Reputation: 153
Location: Dawn of time
Post: #19
TobiasTheCommie Wrote:Pull requests have been sent for 0.9.1.

The updated version should land in the Eden repository soonish.

Is that the one i was beta testing for Artwork Downloader?

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 4
Post: #20
Martijn Wrote:Is that the one i was beta testing for Artwork Downloader?

Yes. Smile
find quote
Martijn Offline
Team-XBMC
Posts: 10,241
Joined: Jul 2011
Reputation: 153
Location: Dawn of time
Post: #21
TobiasTheCommie Wrote:Yes. Smile

oh goodie Big Grin
Gonna do some testing then and maybe push an update Wink

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 4
Post: #22
Martijn Wrote:oh goodie Big Grin
Gonna do some testing then and maybe push an update Wink

In that case, this is what we sent in the PR
Quote:hg clone http://hg.tobiasussing.dk/hgweb.cgi/cachexbmc/ script.common.plugin.cache -b release -r fabfccb1731a

That will give you the exact same code as what will land in the Eden repo.
find quote
Martijn Offline
Team-XBMC
Posts: 10,241
Joined: Jul 2011
Reputation: 153
Location: Dawn of time
Post: #23
TobiasTheCommie Wrote:In that case, this is what we sent in the PR


That will give you the exact same code as what will land in the Eden repo.

thx Smile

But because i was gonna wait till tomorrow because now i'm emptying a case of beer and watching a movie i would have the correct version anyway Big Grin

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 4
Post: #24
Heh, enjoy Smile
find quote
Jarviss Offline
Member
Posts: 51
Joined: Aug 2011
Reputation: 0
Post: #25
Would be anything I could do to make this install correctly. I get update failed evrytime I try update or manually install.
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 4
Post: #26
Not that i know off. Maybe there would be something in an xbmc debug log.
find quote
Bighampton Offline
Junior Member
Posts: 3
Joined: Feb 2012
Reputation: 0
Location: Seattle
Post: #27
TobiasTheCommie,

I think a common plugin cache is an outstanding idea, but I'm puzzled why you decided to roll your own instead of using an existing package that has a proven track record (such as Beaker)?
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 4
Post: #28
Bighampton Wrote:TobiasTheCommie,

I think a common plugin cache is an outstanding idea, but I'm puzzled why you decided to roll your own instead of using an existing package that has a proven track record (such as Beaker)?

Never heard of Beaker.

This was mostly just made to speedup the YouTube plugin. Then when we started making BlipTV it became apparent that it was in even more need for a speedup than YouTube.

So we separated it out and generalized it a bit.

We also needed something that was thread-safe(for the downloader).
find quote
Popeye Offline
Posting Freak
Posts: 909
Joined: Aug 2009
Reputation: 26
Location: Sweden
Post: #29
I'm to much of a beginner to fully understand what the common cache manages to store. I need to cache xml pages of a few 1000 lines for a variable amount of time, is the common cache something for me then?

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 4
Post: #30
Popeye Wrote:I'm to much of a beginner to fully understand what the common cache manages to store. I need to cache xml pages of a few 1000 lines for a variable amount of time, is the common cache something for me then?
http://wiki.xbmc.org/index.php?title=Add....2Aargs.29


The cache stores whatever your function returns.

If you have a function like:
def getXML():
return [ "xml" ]

then

result = cache.cacheFunction(getXML)

will store [ "xml"]

Whatever your getXML function returns, will be cached.

The next call to
result = cache.cacheFunction(getXML)
within the timeout you have defined(or 24 hours) will NOT call your getXML function, but will just return the stored cache.

But i suggest you read the wiki.
find quote
Post Reply