[TYPO3-dev] EM oddity: fetching the extension list
Bernhard Kraft
kraftb at kraftb.at
Wed Sep 13 02:32:54 CEST 2006
Martin Kutschker wrote:
> Hi!
>
> Here's what I do:
>
> I delete the file typo3temp/extensions.xml.gz. Then I click the
> "retrieve/update" button. The file will be recreated, but I get the
> message "The extension list has not changed remotely, it has thus not
> been fetched.". This is odd: I have obviously fetched it now, I even
> notice the download time.
There is also a file called extension.bin in the typo3temp/ directory.
You have to delete both of them - the extension.bin file is a cache file
(the serialized extension array - of all 1800 (!!!) extensions).
The file get's read in at a whole and deserialize - which is also a reason
why the EM needs more than 32MB of memory on 64-bit machines (each integer
is 8 byte instead of 4).
There is a solution for the memory problem from me in the TER (kb_test_em) - the
extension goes mostly the same way as ch_lightem from Chi Hoang except that it
does not use the pibase FE library and thus hat not such a nice page-browser ...
It is also written in such a way that it could go into core (tablenames, etc.)
The biggest advantage of the approach of Chi Hoang and me is that the extension
list get's stored in a cache-table in the database (1800 extension entries isn't
that much ~8MB) which allows a much quicker search for one extension key - and it
could easiyl be extended to search for authors or extension names, descriptions
as the database is local.
greets,
Bernhard
--
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]
More information about the TYPO3-dev
mailing list