403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.88.54
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/audiomatrix.in/wp-content/plugins/popup-maker/includes/functions/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/audiomatrix.in/wp-content/plugins/popup-maker/includes/functions/utils/cache.php
<?php
/**
 * Functions for Cache Utility
 *
 * @package   PUM
 * @copyright Copyright (c) 2023, Code Atlantic LLC
 */

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

/**
 * Add a cache key via PUM Cache.
 *
 * @param $key
 * @param $data
 * @param string $group
 *
 * @return bool
 */
function pum_cache_add( $key, $data, $group = '' ) {
	return PUM_Utils_Cache::add( $key, $data, $group );
}

/**
 * Set a cache key via PUM Cache.
 *
 * @param $key
 * @param $data
 * @param string $group
 *
 * @return bool
 */
function pum_cache_set( $key, $data, $group = '' ) {
	return PUM_Utils_Cache::set( $key, $data, $group );
}

/**
 * Replace a cache key via PUM Cache.
 *
 * @param $key
 * @param $data
 * @param string $group
 *
 * @return bool
 */
function pum_cache_replace( $key, $data, $group = '' ) {
	return PUM_Utils_Cache::replace( $key, $data, $group );
}

/**
 * Get a cache key via PUM Cache.
 *
 * @param $key
 * @param string $group
 * @param bool   $force
 * @param null   $found
 *
 * @return bool|mixed
 */
function pum_cache_get( $key, $group = '', $force = false, &$found = null ) {
	return PUM_Utils_Cache::get( $key, $group, $force, $found );
}

/**
 * Delete a cache key via PUM Cache.
 *
 * @param $key
 * @param string $group
 *
 * @return bool
 */
function pum_cache_delete( $key, $group = '' ) {
	return PUM_Utils_Cache::delete( $key, $group );
}

/**
 * Delete a cache group via PUM Cache.
 *
 * @param string $group
 *
 * @return bool
 */
function pum_cache_delete_group( $group = '' ) {
	return PUM_Utils_Cache::delete_group( $group );
}

/**
 * Increase a numeric cache value by the offset.
 *
 * @param $key
 * @param int    $offset
 * @param string $group
 *
 * @return bool|false|int
 */
function pum_cache_incr( $key, $offset = 1, $group = '' ) {
	return PUM_Utils_Cache::incr( $key, $offset, $group );
}

/**
 * Decrease a numeric cache value by the offset.
 *
 * @param $key
 * @param int    $offset
 * @param string $group
 *
 * @return bool|false|int
 */
function pum_cache_decr( $key, $offset = 1, $group = '' ) {
	return PUM_Utils_Cache::decr( $key, $offset, $group );
}

/**
 * Gets the filterable timeout for a cache object by key.
 *
 * @param $key
 *
 * @return int
 */
function pum_cache_timeout( $key ) {
	static $timeouts;

	if ( ! isset( $timeouts ) ) {
		$timeouts = apply_filters( 'pum_cache_timeouts', [] );
	}

	return isset( $timeouts[ $key ] ) ? $timeouts[ $key ] : 0;
}

Youez - 2016 - github.com/yon3zu
LinuXploit