can eZ Publish use eZ Component's memcache

Author Message

Marko Žmak

Monday 14 June 2010 12:38:35 am

I see that eZ Components have a nice support for memcache:

http://ezcomponents.org/docs/api/latest/introduction_Cache.html#memory-caching

So can eZP be configured so that uses this memcache feature? What can be cached in this way? What has to be done in order to achieve this?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Edi Modrić

Monday 14 June 2010 1:32:34 am

Don't know about eZC memcache component, but there's an extension that allows the use of memcache for file locking operations, overriding eZMutex class.

http://projects.ez.no/ngmemcachemutex

eZ Publish certified developer

http://ez.no/certification/verify/350658

André R.

Monday 14 June 2010 1:39:25 am

You'll have to rewrite the eZ Publish cache layers (and optimally change them to use one api that uses ezcCache as back end), please send patch :)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Marko Žmak

Monday 14 June 2010 2:52:52 am

Ok, further questions:

- can the eZ Component's memcache functionality be used to cache the query results from the database?

- what about lamemcache (http://projects.ez.no/lamemcache)? What kind of caching does it provide? (besides managing sessions)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Thursday 08 July 2010 3:04:39 pm

Andre, I'm thinking of rewriting the cache layers, could you give me some hints about it...

What cache classes would be best to rewrite?

Is there a single class that I can rewrite which would make memcache work with all caches?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gaetano Giunta

Friday 09 July 2010 2:06:37 am

Look at the cluster file handlers, the real meat is in there

Principal Consultant International Business
Member of the Community Project Board

Marko Žmak

Friday 09 July 2010 3:32:50 am

"

Look at the cluster file handlers, the real meat is in there

"

And what about adding a new file handler that uses memcache? How does that sound?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bertrand Dunogier

Friday 09 July 2010 5:32:43 am

I had tried that. The issue is that memcache is not, by design, a persistent/reliable storage backend. It is volatile, and can't really be trusted for persistent data.

Besides that, there is no reason why it wouldn't work.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Marko Žmak

Friday 09 July 2010 6:16:38 am

Yes I see that file handlers don't handle only cache files but also other, persistent files. So I'm back to the previous question:

Is there a single class that I can rewrite which would make memcache work with all caches?

(but which works only with caching not for other files)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.