Leaseweb / LswMemcacheBundle

Symfony bundle for Memcache Doctrine caching and session storage in the Web Debug Toolbar.
MIT License
202 stars 57 forks source link

Session cache dos not work #47

Closed manelpm10 closed 9 years ago

manelpm10 commented 9 years ago

I've installed and configured LswMemcacheBundle acording with the documentation:

Modified app/AppKernel.php, added the lsw_memcache to the config.yml

lsw_memcache:
    session:
        client: sessions
        prefix: "session_"
        ttl: 7200
        locking: true
        spin_lock_wait: 150000
    clients:
        default:
            hosts:
              - { dsn: localhost, port: 11211 }
        sessions:
            hosts:
              - { dsn: localhost, port: 11211 }

And the memcached server is working as expected

$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
quit
Connection closed by foreign host.

But the sessions aren't stored in the memcached. I've seen in the known issues that debug doesn't show the memcached hits/writes... for session, but anyway, I've debuged the LockingSessionHandler and is never accessed (even instantiated).

Am I missing something?

Thank you very much for your help.

manelpm10 commented 9 years ago

Answering myself: https://github.com/LeaseWeb/LswMemcacheBundle/issues/40