WordPress.org

Ready to get started?Download WordPress

Forums

Quick Cache Plugin Not working: no Mutex Lock? (1 post)

  1. carolm
    Member
    Posted 1 year ago #

    I installed Quick Cache ok at this site: http://www.mysecondmillion.com

    I Checked everything 3 times. When I log out and look at my view Page Source there is no green Quick Cache information at the end of the page.

    I checked wp-content/cache/advanced cache (I think) - and I found this about Quick Cache:

    if (is_dir (WP_CONTENT_DIR . "/cache") && is_writable (WP_CONTENT_DIR . "/cache"))
    {
    $total_time = number_format (microtime (true) - QUICK_CACHE_TIMER, 5, ".", "");
    /**/
    $cache = $buffer . "\n<!-- This Quick Cache file was built for ( " . QUICK_CACHE_FILE_DESC . " ) in " . $total_time . " seconds, on " . date ("M jS, Y \a\\t g:i a T") . ". -->";
    $cache .= "\n<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on " . date ("M jS, Y \a\\t g:i a T", strtotime ("+" . QUICK_CACHE_EXPIRATION . " seconds")) . " -->";
    /**/
    if (QUICK_CACHE_USE_FLOCK_OR_SEM === "sem" && function_exists ("sem_get") && ($mutex = @sem_get (1976, 1, 0644 | IPC_CREAT, 1)) && @sem_acquire ($mutex) && ($cached = true))
    file_put_contents (QUICK_CACHE_FILE, serialize ($headers) . "<!--headers-->" . $cache) . sem_release ($mutex);
    /**/
    else if (($mutex = @fopen (WP_CONTENT_DIR . "/cache/qc-l-mutex.lock", "w")) && @flock ($mutex, LOCK_EX) && ($cached = true))
    file_put_contents (QUICK_CACHE_FILE, serialize ($headers) . "<!--headers-->" . $cache) . flock ($mutex, LOCK_UN);
    /**/
    return ($cached) ? $cache : $buffer . "\n<!-- Quick Cache: failed to write cache, unable to obtain a mutex lock at the moment. Quick Cache will try again later. -->";
    }
    else /* We need to report that the cache/ directory is either non-existent ( and could not be created ) or it is not writable. */
    {
    return $buffer . "\n<!-- Quick Cache: failed to write cache. The cache/ directory is either non-existent ( and could not be created ) or it is not writable. -->";
    }
    }
    /**/
    ob_start("ws_plugin__qcache_builder"); /* Start output buffering. */
    }
    }
    }
    }
    /**/
    if (QUICK_CACHE_ENABLED) /* Only if enabled. */
    call_user_func("ws_plugin__qcache_handler");
    ?>

    It says, "Unable to obtain a Mutex Lock"???

    What does this mean?

    And how can I get Quick Cache to work?

    If someone can help with this it would be great. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic