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/Abstracts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/theprintave/wp-content/plugins/dokan-lite/includes/Abstracts/DokanCache.php
<?php

namespace WeDevs\Dokan\Abstracts;

use WeDevs\Dokan\Traits\ObjectCache;
use WeDevs\Dokan\Traits\TransientCache;

/**
 * Dokan Cache class.
 *
 * Manage all of the caches of your WordPress plugin and handles it beautifully.
 *
 * @since 3.3.2
 *
 * @package WeDevs\Dokan\Abstracts\Cache
 */
abstract class DokanCache {

    use ObjectCache, TransientCache;

    /**
     * Get Cache Group Prefix.
     *
     * @since 3.3.2
     *
     * @return string
     */
    abstract protected static function get_cache_group_prefix();

    /**
     * Get Cache Key Prefix.
     *
     * @since 3.3.2
     *
     * @return string
     */
    abstract protected static function get_cache_prefix();

    /**
     * Add Cache Group Prefix to group.
     *
     * @since 3.3.2
     *
     * @param string $group
     *
     * @return string
     */
    private static function get_cache_group_with_prefix( $group ) {
        // Add prefix to group.
        return empty( $group ) ? '' : static::get_cache_group_prefix() . '_' . sanitize_key( $group );
    }

    /**
     * Get Microtime value as prefix.
     *
     * This will Replace microtime() value's dot => '.' and space => ' '
     * characters with underscore => '_' character
     *
     * @since 3.3.2
     *
     * @return string
     */
    private static function get_time_prefix() {
        return str_replace( [ '.', ' ' ], '_', microtime() );
    }
}

Spamworldpro Mini