In my site I have in the sidebar a block with recent comments.
Is there a way to flush all pages when a new comment is added? otherwise the block with recent comments is not updated in all boosted page.

Comments

Spleshka’s picture

I guess that you need to use SSI or ESI integration here. Flushing all page cache on every comment instert is a heavy operation. For this case even better disable page cache, then flush it every time when new comment was added.

Mentor.37’s picture

This is a little site cached with boost, I have to approve every comment and I do this once a day.
I'd like to flush all pages when a comment is approved and when a node is added.
Is this possible?
I used Boost Expire but it deletes all boosted pages when a comment is added and not when a comment is approved.

#postedit
I edited the module Boost Expire and I solved the problem.
Here my version of Boost Expire.

Spleshka’s picture

You may flush any cache on comment publish - 7.x-2.x branch of this module allows it.

Mentor.37’s picture

No, I can not flush all pages when a comment is published, i tried.

Spleshka’s picture

Can you show me your config when you tried this?

Mentor.37’s picture

I selected all options in node settings and in comment setting but there was not the possibility to flush all bosted pages, only related node o comment page. I tried adding "*" in custom pages to flush but no luck.

Spleshka’s picture

Try to add "|wildcard" in custom page settings, that should work.

Mentor.37’s picture

Ok, I will try this we, thank's.

Mentor.37’s picture

Issue summary: View changes

correction

Spleshka’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Postpone the task, because of no progress.

Mentor.37’s picture

Tried with no luck.

Spleshka’s picture

Status: Postponed (maintainer needs more info) » Needs work

Okey, maybe it makes sense to provide setting like "Flush all cached pages". I think this is simple, don't you want to create a patch for that?