• Resolved matoni555

    (@matoni555)


    Hello,
    I tried to set up Cache Enabler plugin, but it does not save cached files.

    I tried to debug plugin:
    1) Variable $cached on line 1456 in cache_enabler.class.php is false
    2) Function set_cache is never called from ob_start on line 1465

    I tried do disable all plugins in WordPress, but nothing changed.

    Can you please help me?

    Thank you
    Thomas

Viewing 11 replies - 1 through 11 (of 11 total)
  • Can you provide the site URL you are trying to use CE on? Also, have you tried disabling all plugins and switching to a default theme to see if the issue persists?

    Thread Starter matoni555

    (@matoni555)

    This site is under HTTP authorization. Can I send you username and password safely?

    I found that if I deactivated Autoptimize plugin, cache works good.
    It is also same on my local machine. When Autoptimize plugin is active, Cache enabler does not save static pages.

    Thank you

    Have you tried keeping Autoptimize enabled but disabling the features within the plugin’s settings? Does doing that still cause the same issue?

    Thread Starter matoni555

    (@matoni555)

    No. When I disable CSS and JS optimization in Autoptimize, Cache enabler works fine. When I enable one of CSS or JS optimization, cache not working.

    Can you provide a screenshot of your Cache Enabler and Autoptimize settings?

    Thread Starter matoni555

    (@matoni555)

    Your settings look fine. And you’ve already tried disabling all other plugins besides those two?

    Also, when both plugins are enabled can you check your filesystem to see if the static page generation is working?

    Thread Starter matoni555

    (@matoni555)

    Yes, I tried disable all plugins, it was same.

    Static page generation is not working on filesystem if both plugin are active (and Autoptimize CSS or JS is enabled).

    I can upload website to temporary domain and get you access to WP and FTP if you can help me.

    Thank you

    Hmm, are you receiving any console errors?

    Perhaps there is a conflict with your configuration somewhere or maybe your theme. I would spin up a new test site with only CE and Autoptimize enabled with a default theme to try to further rule out whether it’s related to your server config or WordPress setup.

    Thread Starter matoni555

    (@matoni555)

    Oh, when I was debugging Autoptimize I place this code to functions.php:
    add_filter('autoptimize_filter_obkiller','__return_true');

    Then I forgot to delete this line.

    Now everything is ok.

    Thank you

    that indeed is a dangerous filter @matoni555;

    
    // filter to be used with care, kills all output buffers when true. use with extreme caution. you have been warned!

    glad you remembered & fixed! ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Cache not working’ is closed to new replies.