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

Dmitry Dulepov dmitry.dulepov at gmail.com
Fri Nov 28 18:52:47 CET 2008


Hi!

Patrick Gaumond wrote:
> I have no errors showing in BE or FE on a windows XP memcached machine
> but since I don't see any better performance I'm wondering if it's
> called at all...

By default TYPO3 uses database caching. You need activate memcached
manually in typo3conf/localconf.php. Here is, for example, how my
configuration looks right now:

$TYPO3_CONF_VARS['SYS']['caching']['cacheBackendAssignments'] =
array(

    'cache_hash' => array(


        'backend' => 't3lib_cache_backend_Db',


        'options' => array(


            'cacheTable' => 'cache_hash'


        )


    ),


    'cache_pages' => array(


        'backend' => 't3lib_cache_backend_Memcached',


        'options' => array(


            'servers' => array('localhost:11211'),


        )


    ),


    'cache_pagesection' => array(


        'backend' => 't3lib_cache_backend_Db',


        'options' => array(


            'cacheTable' => 'cache_pagesection'


        )


    )


);

Notice that cache_pages uses t3lib_cache_backend_Memcached. This is it.

> To test that my memcache was working I followed the instructions and use
> the simple test from there :
> http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-for-php/

This installs memcached but you still need to activate it in TYPO3 :)

> Dmitry, is there something I could test to help you? I find it a bit
> simplistic to say +1 because I don't have errors... ;)

Main test is to activate memcached for TYPO3, navigate through pages
watching load times when you go to already visited pages. Next try
editing some of these pages in BE and navigate to them again. You
should see that they are changed in FE. It did not work before the
patch.

-- 
Dmitry Dulepov
TYPO3 translations support
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog:
http://typo3bloke.net/post-details/typo3_43_cache_and_memcached_fix_ready/


More information about the TYPO3-team-core mailing list