Internal sjcache table

The forum for designers and developers.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Internal sjcache table

Postby SilverEagle » 2. Mar 09, 22:11

Hi Team,

As you know I'm hacking around in bit in the sjcache table, but I am totally confused what encoding is used in the org field. Everytime I think I get it right an exception to my scheme pops up.

So far I detected three flavours:
1) filename + "#" (+ more stuff)
2) "cover:" + artist + "/" + album + "/" (+ more stuff)
3) directoryname + "/" (+ more stuff)

My problem is that filename, artist/album and directoryname all seem to use different encodings, and none of them plain encodeURI() as offerend in SJ scripting. I started by scripting for all replacements beyond encodeURI() I ran into, but there seems to be no end of them :-(...

Care to tell me what encoding is used for these fields?

SilverEagle
Last edited by SilverEagle on 2. Mar 09, 22:59, edited 1 time in total.

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Internal sjcache table

Postby Service-Team » 2. Mar 09, 22:17

Well, the "org" column in the "sjcache" table is just a key, just a sequence of characters. It is constructed in different ways - the only important thing to "org" is to be unique. So we use a combination of file name, operation, date and time, depending on the purpose; doing so, we get an ID that is used for the name of the temporary file then. That's all.

Only the part of the software that has create a record this way will know how to access it again, but this is no problem and a wanted behaviour. For scripts, currently there is no documented, prober way to add records to this table.

Best regards,
Your Silverjuke-Team


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Developer Network”