• chrissmith1534

    (@chrissmith1534)


    I love this plug in but every couple of days, the cache self destroys (ie serve static captures 404s and caches them! Especially the main index.html). From there, the website’s landing page becomes a 404 (since apache finds the file and serves it). The other pages are fine (no cached pages found). Anyone has this issue for an otherwise fine app?

    I tried different things (cache warmup delay and such) but it seems to come back regularly).

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter chrissmith1534

    (@chrissmith1534)

    Do you think this would help? Line 67 StaticServe.php

                    // Never cache error responses (404/redirects/etc.)
    // Only cache successful HTML responses
    $status_code = function_exists('http_response_code') ? (int) http_response_code() : 200;
    if ( ( function_exists('is_404') && is_404() ) || $status_code !== 200 ) {
    return $html_content; // Serve response, but don't write cache
    }
Viewing 1 replies (of 1 total)

The topic ‘The cache self destroys regularly’ is closed to new replies.