Page files are not deleted when clearing the cache:

cache_clear_all($cid = '*', $table = 'cache_page', $wildcard = TRUE)

Comments

kenorb’s picture

Status: Active » Needs work

Tried to fix that by following changes:

Previous code:

  if ($wildcard) {
    // TODO: what about wildcards?  Won't work with md5's...
    return;
  }
...
  if (empty($cid)) {
    if ($cache_lifetime || variable_get('page_cache_fastpath', 0)) {
...

patched code:

  if ($cid != '*' && $wildcard) {
    // TODO: what about wildcards?  Won't work with md5's...
    return;
  }
...
  if (empty($cid) || $cid == '*') {
    if ($cache_lifetime || variable_get('page_cache_fastpath', 0)) {
...

And the flush code is executed now, but problem still persist.

kenorb’s picture

Title: Page files are not deleted when clearing the cache » Pages are still old even after clearing the cache
Status: Needs work » Active
kfritsche’s picture

Same problem here for the 6.x dev version.

I looked into it and found the problem.
In the cache.fs.inc there are two calls of module_invoke. (both in cache_clear_all)
the correct call should be:

module_invoke('fastpath_fscache', 'purge_loop', $table);

now a cache clear works for me

kenorb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.