Forums / Developer / Disable caches

Disable caches

Author Message

David Santiso

Wednesday 02 March 2011 2:24:04 pm

Hi,

How can I disable some caches?

I want to users view the content added by other users instantly.

Gaetano Giunta

Thursday 03 March 2011 1:06:00 am

Your question is too generic to have a proper answer.

The cache you might want to disable is the "view cache" (look for "viewcaching" in ini files).

But that is considered very very very much a bad idea on production web sites, as it basically kills performances and scalability.

By default you should not have such problems as you describe, ie. eZP shows new content as soon as it is added. If you have introduced dependencies between unrelated content via templates, you should look into the smart view cache...

Principal Consultant International Business
Member of the Community Project Board

Damien Pobel

Thursday 03 March 2011 4:34:56 am

Hi,

In addition to what Gaetano writes, you should have a look at http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Features/View-caching

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

David Santiso

Thursday 03 March 2011 10:45:14 am

Yes, I agree, but I'm building a site is that users continually add content to show to others.

I saw that if I add content, does not appear until the caches clean.

Sebastiaan van der Vliet

Monday 07 March 2011 5:09:53 am

my solution is: ... Wrong

{section show=$MinGroup:item.data_map|contains('link')}
will not work because we need to test against the keys of data_map, not the values. Back to the drawing board.

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Sebastiaan van der Vliet

Monday 07 March 2011 5:17:17 am

No, that function is essentially missing. Once your object is published, you cannot unpublish it (via the user interface).
In ez2, there was such an option (but ez2 had NO versioning).

You may try these options, when you wand to hide a published article:
- Delete it (will be in trash... but probably not editable)
- Move it to some place, when the "common user" cannot see it
- Assign a section to it, that the "common user" cannot read (you need a "admin section" for this, but i found this very handy).

We are using the second option, which you can use to (re-)move complete folder structures "out of the the visitors view" quickly.

NOTE: When you move an object by changing its main location, it might get a news section id (it will get the section ID of the new parent node). But when you move a complete tree, this only applies to the main object (usually a folder), not the child node (node assignment is not recursive, when you move nodes).
This might be important, when your read permission are only based on sections.

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.