eZ Community » Forums » Developer » can eZ Publish use eZ Component's...
expandshrink

can eZ Publish use eZ Component's memcache

can eZ Publish use eZ Component's memcache

Monday 14 June 2010 9:38:35 am - 8 replies

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

http://ezcomponents.org/docs/api/...troduction_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?

Modified on Monday 14 June 2010 9:44:37 am by Mavko Žmak - Žmale

Monday 14 June 2010 10: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

Modified on Monday 14 June 2010 10:33:32 am by Edi Modrić

Monday 14 June 2010 10: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 happy.gif Emoticon

Monday 14 June 2010 11: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)

Friday 09 July 2010 12:04:39 am

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?

Modified on Friday 09 July 2010 9:53:57 am by Mavko Žmak - Žmale

Friday 09 July 2010 11:06:37 am

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

Friday 09 July 2010 12:32:50 pm

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?

Friday 09 July 2010 2:32:43 pm

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.

Friday 09 July 2010 3:16:38 pm

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)

Modified on Friday 09 July 2010 7:58:08 pm by Mavko Žmak - Žmale

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from