In authcache.admin.inc cache_clear_all on line 276 is just set as,
cache_clear_all();

Which will expire only stale data. As button says on form "clear cached data" it should be as the one on line 139, and clear
cache_clear_all('*', 'cache_page', TRUE);

So I made a patch to make this the same as this second form "authcache_admin_pagecaching" is not clearing cache the way we expect it to be.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Marko B created an issue. See original summary.

Marko B’s picture

Status: Active » Needs review
znerol’s picture

Status: Needs review » Needs work

In my opinion cache_clear_all(); (without any parameters) is the correct way to clear the page cache. This is also what is used in Drupal core (see, e.g. node_admin_nodes_submit).

Not specifying any parameter will remove expired and temporary items from the page cache as well as the block cache. Since Authcache saves cached pages as temporary items, those get nuked.

Hence, IMHO the line in 139 is actually wrong and needs a fix.

Marko B’s picture

From out use case, we usually want to clear ALL cache from authcache, which is in stored in redis. Not only expired ones as this will prevent from changes beeing shown.
Seems to me like authcache should have different logic as when you change something on site, its not propagated to autcache as expired, right?

znerol’s picture

Status: Needs work » Closed (won't fix)