• Hello,

    I am using Cache Enabler 1.8.7 with theme Enfold. I have tried with and without “HTML minify” and both including/excluding inline CSS and JavaScrupt. No impact on behaviour.

    When using a PHP 8 site on nginx site the first part of the cache paged gets corrupted.
    After deleting the cache, the first access to the page the html returned starts like
    <!DOCTYPE html>
    Next access to page returnes the cached version, which the starts like
    l>
    i.e. <!DOCTYPE htm is missing, which the causes the page to display some header items wrongly.
    End of cached file:
    <!– Cache Enabler by KeyCDN @ Sat, 05 Feb 2022 22:34:11 GMT (https-index.html) –>
    I can produce files to compare if needed.

    KR,
    Bj?rn Hasselberg

    • This topic was modified 2 years, 9 months ago by bjornha.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter bjornha

    (@bjornha)

    The cached files in wp-content/cache/cache enabler/… are correct, it is what is returned to the client that is wrong.

    Plugin Author KeyCDN

    (@keycdn)

    Can you enable debugging in wp-config.php and provide more details?

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', true);
    error_reporting(E_ALL | E_STRICT);
    Thread Starter bjornha

    (@bjornha)

    Applied the options above, no error in Chrome.
    debug.log gets the same entries on both apache with PHP7 and nginx with PHP8
    —————
    INSERT INTO wp_nxs_log (date, act, type, nt, nttype, flt, uid, msg, extInfo) VALUES (‘2022-02-25 13:44:26’, ‘Cron Request’, ‘L’, ”, ”, ‘cron’, ‘0’, ‘122.65s after the previous one. ‘, ‘| Cron called from 169.254.136.1 (WordPress/5.9.1; https://testwww.pro4u.se)’) skapat av do_action_ref_array(‘nxs_querypost_event’), WP_Hook->do_action, WP_Hook->apply_filters, nxs_checkQuery, nxs_addToLogN, nxs_LogIt, nxsLogIt
    —————
    Cached file is returned correctly using apache and PHP7.
    Switiching to nginx and PHP8 the first part is missing in reply, ‘<!DOCTYPE htm’ is cut out.
    Switching back to apache and PHP7 same file gest returned OK to browser.

    Plugin Author KeyCDN

    (@keycdn)

    Please make sure to have the latest version of Cache Enabler installed.

    Thread Starter bjornha

    (@bjornha)

    It is installed. 1.8.7, since relase

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8 on nginx gives faulty cache page’ is closed to new replies.