• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 11
[Release] Common plugin cache
#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
Reply
#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.
Reply
#18
Pull requests have been sent for 0.9.1.

The updated version should land in the Eden repository soonish.
Reply
#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?
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#20
Martijn Wrote:Is that the one i was beta testing for Artwork Downloader?

Yes. Smile
Reply
#21
TobiasTheCommie Wrote:Yes. Smile

oh goodie Big Grin
Gonna do some testing then and maybe push an update Wink
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#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.
Reply
#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
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#24
Heh, enjoy Smile
Reply
#25
Would be anything I could do to make this install correctly. I get update failed evrytime I try update or manually install.
Reply
#26
Not that i know off. Maybe there would be something in an xbmc debug log.
Reply
#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)?
Reply
#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).
Reply
#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?
Pneumatic | SABnzbd | XBMC that just works - openelec
Reply
#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.
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 11

Logout Mark Read Team Forum Stats Members Help
[Release] Common plugin cache1