Permalink
Commits on Sep 5, 2018
  1. Uses home_url() for admin bar (#603)

    stodorovic authored and donnchawp committed Sep 5, 2018
    * Uses home_url() for admin bar
    
    * Replaces wp_redirect with wp_safe_redirect for admin bar
    
    * PHPCS fixes for admin_bar_delete_page
Commits on Sep 3, 2018
Commits on Aug 22, 2018
  1. Bump version number and add changelog (#598)

    donnchawp committed Aug 22, 2018
    * Bump version numbe and add changelog
    
    * Add another change
  2. Fixes admin bar rendering (#589)

    stodorovic authored and donnchawp committed Aug 22, 2018
    * Fixes admin bar rendering
    
    * Uses "relative" path in admin_bar_delete_page and supercache_admin_bar_render
    
    * Deprecation of favorite_actions
    
    * Uses action admin_bar_menu
    
    * Uses get_option( 'home' ) to remove base path
Commits on Aug 20, 2018
Commits on Aug 16, 2018
Commits on Aug 10, 2018
  1. Update version to 1.6.3 and changelog (#581)

    donnchawp committed Aug 10, 2018
    * Update version and changelog
    
    * Updated changelog
Commits on Aug 9, 2018
  1. Add wpsc_cookies and wpsc_plugins related actions to modify those set…

    donnchawp committed Aug 9, 2018
    …tings (#582)
    
    This PR adds four actions to modify wpsc_cookies and wpsc_plugins:
    
    * wpsc_add_plugin
    * wpsc_delete_plugin
    * wpsc_add_cookie
    * wpsc_delete_cookie
    
    These actions will allow WordPress plugins to modify the cookies and
    plugins lists used by WP Super Cache instead of the add/delete functions
    introduced in #574 and #580.
    Duplicate entries are removed. Example code:
    
    For example, to add a cookie name called 'euCookie':
    
    `do_action( 'wpsc_add_cookie', 'euCookie' );`
    
    To remove that cookie:
    
    `do_action( 'wpsc_delete_cookie', 'euCookie' );`
Commits on Aug 8, 2018
  1. Add cookie helper functions to modify the cache key more easily. (#580)

    donnchawp committed Aug 8, 2018
    * Add cookie helper functions to modify the cache key more easily.
    
    Inspired by
    https://wordpress.org/support/topic/php-cookies-doesnt-work-with-wp-super-cache/
    This will make it much easier for plugin authors that use cookies to
    identify visitors to integrate with WP Super Cache.
    Use the function wpsc_add_cookie( $name ) to add a cookie name to the
    list of cookies and wpsc_delete_cookie( $name ) to remove it.
    
    Example code to add the cookie "euCookie" used by the EU Cookie Law
    plugin;
    https://wordpress.org/plugins/eu-cookie-law/
    
    --------------
    function add_wpsc_cookies() {
        if ( function_exists( 'wpsc_add_cookie' ) ) {
            wpsc_add_cookie( 'euCookie' );
        }
    }
    
    add_action( 'init', 'add_wpsc_cookies' );
    --------------
    
    It's wrapped in an action on "init" to make sure that WP Super Cache is
    loaded but the wpsc_add_cookie() function only needs to be called once.
    Calling it multiple times does not add multiple entries for the same
    cookie name.
    
    * Add extra cookie names to mod_rewrite rules
    
    * Add docs on plugin and cookie functions
    
    * Extra documentation on cookie names+values
Commits on Aug 7, 2018
  1. Make it easier to add new WP Super Cache plugins by outside code. (#574)

    donnchawp committed Aug 7, 2018
    * Put plugins in wp-content/plugins/wp-super-cache-plugins/
    
    Adding new plugins to WP Super Cache to extend it is complicated but
    where they should go should be easy. This patch makes the plugin check
    in a particular directory if it exists and load the PHP files there.
    The files there won't be deleted when WP Super Cache is updated.
    
    * Add $wpsc_plugins array with plugins to be loaded
    
    Add helper functions to add and delete plugin files from the list to be
    loaded by WP Super Cache:
    wpsc_add_plugin( $file );
    wpsc_delete_plugin( $file );
    And this function to return the list of plugins:
    wpsc_get_plugins();
    
    * Add documentation on adding/deleting plugins.
Commits on Jul 25, 2018
  1. Add warning about DISABLE_WP_CRON (#575)

    donnchawp committed Jul 25, 2018
    Fixes #532
  2. When deleting a single post, don't try to delete the homepage+sub dirs (

    donnchawp committed Jul 25, 2018
    #573)
    
    * When deleting a single post, don't try to delete the homepage+sub dirs
    
    Preloading deletes the old cache files for each page as it goes but
    sometimes it deletes the homepage and then deletes everything else
    because they're sub directories.
    See:
    https://wordpress.org/support/topic/preload-cache-doesnt-seem-to-preload-all-pages/
    
    * If clear_post_supercache() tries to delete the homepage then stop
    
    It should only delete posts or pages.
    
    * Delete the homepage cache when preloading finishes.
Commits on Jul 23, 2018
Commits on Jul 20, 2018
  1. Only check the cache max time if it's not 0, and GC disabled. (#571)

    donnchawp committed Jul 20, 2018
    By setting the cache max time to 0 garbage collection is disabled but
    this test would stop PHP serving cache files because it detected that
    they were expired.
    Fixes
    https://wordpress.org/support/topic/version-1-6-2-fails-to-cache-had-to-revert-to-1-6-1/
Commits on Jun 19, 2018
  1. Bump version to 1.6.2 and update changelog (#564)

    donnchawp committed Jun 19, 2018
    * Bump version to 1.6.2 and update changelog
    
    * Updated changelog
Commits on Jun 18, 2018
  1. Remove searchengine plugin (#567)

    donnchawp committed Jun 18, 2018
    * Removed the searchenging example plugin
    
    This plugin sets a cookie to track user interactions. It's only a test
    plugin but raises privacy concerns so I feel it would be better to
    remove it and replace it with a link to the file in the readme.txt
    
    * Link to the searchengine.php on Github because it's removed here.
Commits on Jun 16, 2018
  1. Fixes typo in error message. (#566)

    emrikol authored and donnchawp committed Jun 16, 2018
    I believe this is a typo, from what I can tell.  If not, please disregard :)
Commits on Jun 15, 2018
  1. Allow the Vary and Cache-Control headers to be modified. (#555)

    donnchawp committed Jun 15, 2018
    * ALlow the Vary and Cache-Control headers to be modified.
    Fixes #523 and #522
    This is for advanced users only!
    
    Define the constants WPSC_VARY_HEADER and WPSC_CACHE_CONTROL_HEADER to
    override the default Vary and Cache-Control headers.
    If the Vary header doesn't include Accept-Encoding visitors may get
    mixed compressed or not pages.
    If it is missing Cookie the wrong file might be sent to anonymous users.
    
    * If headers are blank then don't add them to the cache/.htaccess
  2. Fix #556 (#557)

    zytzagoo authored and donnchawp committed Jun 15, 2018
    Inverting the condition in order to actually use a proper path if it's not already set. Fixes #556
  3. Write directly to the config file to avoid permission issues (#563)

    donnchawp committed Jun 15, 2018
    Fixes #520
    A directory needs to be writeable to create a new file in it, but
    modifying an existing file doesn't.
  4. Fix/avoid serving expired file (#562)

    viniciusbarros authored and donnchawp committed Jun 15, 2018
    * Preventing serving expired cache, when directly serving file
    
    * Preventing serving expired cache, when directly serving file
    
    * Fix spaces in new code
    
    Minor change: Fix indention of new code, and add spaces in code.
Commits on May 15, 2018
  1. Fix minor typo in this file. props @Chezus

    donnchawp committed May 15, 2018
    Fixes #534