• Hello

    in Wp-admin > Wp super cache > advanced > Accepted Filenames & Rejected URIs, the “page types” checkboxes don’t save properly. When you tick some boxes and press save, they will come back ticked as expected, but when you reload the page the ticks will disappear.

    Steps
    1) go to Wp-admin > Wp super cache > advanced > Accepted Filenames & Rejected URIs
    2) tick some boxes, ie “Single Posts” and “Home”
    3) press save
    4) observe the form coming back with the correct items checked
    5) reload the page (F5), or navigate to Wp super cache > advanced > Accepted Filenames & Rejected
    6) observe all the ticks have gone

    Expected behaviour would be these fields always being checked correctly depending on which options are enabled.

    I am using the latest version of super cache (1.4.8) and WP, and have tried disabling all plugins and themes.

    Does anybody else experience the same issue?

    Thanks

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

    (@mclaurent)

    Figured it out.

    These settings are not saved in the database, but in /wp-content/wp-cache-config.php.
    My wp-cache-config.php for some reason had the relevant settings in twice. When I saved the settings, SuperCache only updated the first line, making my changes not take effect when reloading the page. Here’s what my file looked like after saving hte changes:

    
    <?php 
    $wp_cache_pages["search"]    = 0; //Added by WP-Cache Manager
    $wp_cache_pages["feed"]      = 1; //Added by WP-Cache Manager
    $wp_cache_pages["category"]  = 0; //Added by WP-Cache Manager
    $wp_cache_pages["home"]      = 1; //Added by WP-Cache Manager
    $wp_cache_pages["frontpage"] = 1; //Added by WP-Cache Manager
    $wp_cache_pages["tag"]       = 1; //Added by WP-Cache Manager
    $wp_cache_pages["archives"]  = 0; //Added by WP-Cache Manager
    $wp_cache_pages["pages"]     = 0; //Added by WP-Cache Manager
    $wp_cache_pages["single"]    = 0; //Added by WP-Cache Manager
    $wp_cache_pages["author"]    = 0; //Added by WP-Cache Manager
    // .. more code inbetween here
    $wp_cache_pages["search"]    = 0;
    $wp_cache_pages["feed"]      = 0;
    $wp_cache_pages["category"]  = 0;
    $wp_cache_pages["home"]      = 0;
    $wp_cache_pages["frontpage"] = 0;
    $wp_cache_pages["tag"]       = 0;
    $wp_cache_pages["archives"]  = 0;
    $wp_cache_pages["pages"]     = 0;
    $wp_cache_pages["single"]    = 0;
    $wp_cache_pages["author"]    = 0;
    

    Note: SuperCache doesn’t update all instances of an option in wp-cache-config.php, only the first one.

Viewing 1 replies (of 1 total)
  • The topic ‘Page types settings not saving’ is closed to new replies.