WordPress.org

Plugin Directory

Changeset 563273


Ignore:
Timestamp:
06/24/12 19:59:50 (22 months ago)
Author:
tollmanz
Message:
  • Class methods are callable
  • Transients can be removed even when object cache is used
  • Incremented version
Location:
a-fresher-cache/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • a-fresher-cache/trunk/a-fresher-cache.php

    r559660 r563273  
    55    Description: Get a fresher cache with a dash of "A Fresher Cache" for absolutely no cash. 
    66    Author: tollmanz 
    7     Version: 0.1 
     7    Version: 0.1.2 
    88    Author URI: http://tollmanz.com/ 
    99*/ 
     
    238238        $args = $this->get_args( $key ); 
    239239         
    240  
    241         if ( empty( $args ) ) 
    242             call_user_func( $function ); 
    243         else 
    244             call_user_func_array( $function, $args ); 
     240        call_user_func_array( $function, $args ); 
    245241 
    246242        wp_safe_redirect( wp_get_referer() ); 
  • a-fresher-cache/trunk/classes/class-afc-fresher-cache-item.php

    r559660 r563273  
    146146            'href' => $args['href'], 
    147147            'group' => (bool) $args['group'], 
    148             'function' => false !== $args['function'] && function_exists( $args['function'] ) ? $args['function'] : false, 
     148            'function' => false !== $args['function'] && is_callable( $args['function'] ) ? $args['function'] : false, 
    149149            'args' => $args['args'], 
    150150            'capability' => sanitize_key( $args['capability'] ) 
  • a-fresher-cache/trunk/includes/core-freshen-functions.php

    r559660 r563273  
    4949 */ 
    5050function afc_delete_all_transients( $starting_with = '' ) { 
    51     global $wpdb, $_wp_using_ext_object_cache; 
    52  
    53     if ( $_wp_using_ext_object_cache ) 
    54         return; 
     51    global $wpdb; 
    5552 
    5653    // Get the transient timeout keys 
  • a-fresher-cache/trunk/readme.txt

    r559662 r563273  
    55Requires at least: 3.3 
    66Tested up to: 3.4 
    7 Stable tag: 0.1.1 
     7Stable tag: 0.1.2 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    7777== Changelog == 
    7878 
     79= 0.1.2 = 
     80* Class methods are now valid callbacks 
     81* Transients can be removed even if using an object cache 
     82 
    7983= 0.1.1 = 
    8084* Functions for removing transients 
     
    8791== Upgrade Notice == 
    8892 
     93= 0.1.2 = 
     94* Class methods are now valid callbacks 
     95 
    8996= 0.1.1 = 
    9097* More public functions 
Note: See TracChangeset for help on using the changeset viewer.