Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DuaelFr’s picture

Assigned: DuaelFr » Unassigned
Status: Active » Needs review
FileSize
1.18 KB

Please test it carefully because I coded it without a running instance ;)

This patch is part of the #1day1patch initiative.

Pomliane’s picture

Thanks DuaelFR for the patch!
Unfortunately, it does not seem to work here.

DuaelFr’s picture

Here is the new working one...
Fucking trailing slashes... :D

Pomliane’s picture

Status: Needs review » Reviewed & tested by the community

Works here too! :)

DuaelFr’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
1.66 KB
1.28 KB

Minor performances improvement.

DuaelFr’s picture

Hmm... This is better...
The previous patch never existed.

DuaelFr’s picture

Title: Invalidate page cache when add/edit/delet'ing an answer » Invalidate core page cache and contrib Entity Cache when add/edit/delet'ing an answer
FileSize
2.38 KB
1.76 KB

Let's improve it again !
This now includes Entity Cache support.

Enjoy !

SebCorbin’s picture

Rerolled and replaced '/' by the correct function (base_path) so that it works in subdirectories.

I wonder if we should simply use cache_clear_all() as it is actually done in node_save()...

DuaelFr’s picture

Status: Needs review » Needs work

There is no base_path() function in your patch but it is a good idea !

I think it would be a bad idea to use cache_clear_all() here because of performances issues on websites that could use this module intensely. Imagine Doodle clearing all cache each time an answer is posted, edited or deleted... Moreover, cache_clear_all() only clean page and block cache, not Entity Cache.

SebCorbin’s picture

Status: Needs work » Fixed

Committed as is (with base_path) and credited, thanks :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

DuaelFr’s picture

Issue summary: View changes
Status: Closed (fixed) » Needs review
FileSize
1.37 KB

Reoppening to better handle the entity cache and fix an issue if the page showing the form is using an alias.

This patch has been made on the current dev version obviously.

DuaelFr’s picture

Another big patch to also clear the cache of entities that would reference the entity having the makemeeting field using the Entity Reference module.

Review carefully.

Pomliane’s picture

Works well here, many thanks DuaelFr!

  • SebCorbin committed 37a86d7 on 7.x-2.x
    Follow-up #Issue #2104033 by DuaelFr, SebCorbin: Invalidate core page...
SebCorbin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.