[TYPO3-core] FYI72: bug #9645: Memcached backend is not working properly

Dmitry Dulepov dmitry.dulepov at gmail.com
Thu Nov 27 15:08:20 CET 2008


Hi!

This is SVN patch request.

Type: bug

Branches: trunk

BT reference: http://bugs.typo3.org/view.php?id=9645

Problem: memcached backend is unusable in 4.3 due to the following
problems:
- cache is not cleared when modifying content using Page or List module
- TCEMAIN.clearCacheCmd has no effect with Memcached backend (same
cause as for problem #1)
- clearing cache does not work from CLI scripts
- memcached keys contain extra underscore character (unnecessary
lengthening of they key)
- removing identifier will take a lot of time and memory when cache
contains thousands of pages and lots of tags

Solution: the attached patch fixes these problems by using proper
identifier prefix and by utilizing reverse index between tags and
identifiers. Notice that I have dropped $serverId and associated
set/get methods because they are not really necessary but provoke
users to enter something in the configuration, which will lead to
wrong work of this caching backend. Also I dropped php_sapi_name()
in the identifier prefix. php_sapi_name() does not add any value but
breaks cache clearing from CLI scripts. Also SCRIPT_PATH is dropped
because it will not allow to clear cache from BE.

Notes: I post this patch as FYI72 because not many people use
Memcached and can test it. I made my best to test this patch. After
this patch is applied, the Memcache backend finally works. If
someone discovers bugs later, these bugs will be fixed after
discovery. I am willing to maintain this caching backend and fix
problems in it.

-- 
Dmitry Dulepov
TYPO3 translations support
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog:
http://typo3bloke.net/post-details/typo3org_logins_are_unofficially_back/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9645.diff
Type: text/x-diff
Size: 11337 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081127/11c33f32/attachment.diff 


More information about the TYPO3-team-core mailing list