X7ROOT File Manager
Current Path:
/home/magneti1/public_html/wp-content/plugins/everest-forms/includes
home
/
magneti1
/
public_html
/
wp-content
/
plugins
/
everest-forms
/
includes
/
ðŸ“
..
ðŸ“
Helpers
ðŸ“
RestApi
ðŸ“
abstracts
ðŸ“
admin
ðŸ“
blocks
📄
class-everest-forms.php
(13.76 KB)
📄
class-evf-ajax.php
(71.97 KB)
📄
class-evf-autoloader.php
(1.92 KB)
📄
class-evf-background-process-import-entries.php
(5.15 KB)
📄
class-evf-background-updater.php
(3.27 KB)
📄
class-evf-cache-helper.php
(2.32 KB)
📄
class-evf-cron.php
(1.83 KB)
📄
class-evf-deprecated-action-hooks.php
(3.91 KB)
📄
class-evf-deprecated-filter-hooks.php
(3.64 KB)
📄
class-evf-emails.php
(19.32 KB)
📄
class-evf-fields.php
(3.58 KB)
📄
class-evf-form-handler.php
(13.66 KB)
📄
class-evf-form-task.php
(70.19 KB)
📄
class-evf-forms-features.php
(1.49 KB)
📄
class-evf-frontend-scripts.php
(15.58 KB)
📄
class-evf-install.php
(20.96 KB)
📄
class-evf-integrations.php
(3.3 KB)
📄
class-evf-log-levels.php
(2.61 KB)
📄
class-evf-logger.php
(8.27 KB)
📄
class-evf-post-types.php
(5.13 KB)
📄
class-evf-privacy.php
(7.41 KB)
📄
class-evf-report-cron.php
(6.93 KB)
📄
class-evf-reporting.php
(3.48 KB)
📄
class-evf-session-handler.php
(8.02 KB)
📄
class-evf-shortcodes.php
(2.04 KB)
📄
class-evf-smart-tags.php
(19.59 KB)
📄
class-evf-template-loader.php
(13.08 KB)
📄
class-evf-validation.php
(934 B)
ðŸ“
elementor
📄
evf-conditional-functions.php
(1.21 KB)
📄
evf-core-functions.php
(197.64 KB)
📄
evf-deprecated-functions.php
(6.22 KB)
📄
evf-entry-functions.php
(9.22 KB)
📄
evf-formatting-functions.php
(25.18 KB)
📄
evf-notice-functions.php
(6.23 KB)
📄
evf-template-functions.php
(1.2 KB)
📄
evf-template-hooks.php
(439 B)
📄
evf-update-functions.php
(16.68 KB)
ðŸ“
export
ðŸ“
fields
ðŸ“
interfaces
ðŸ“
libraries
ðŸ“
log-handlers
ðŸ“
shortcodes
ðŸ“
stats
ðŸ“
templates
Editing: class-evf-cache-helper.php
<?php /** * Cache Helper Class * * @class EVF_Cache_Helper * @version 1.0.0 * @package EverestForms/Classes */ defined( 'ABSPATH' ) || exit; /** * EVF_Cache_Helper Class. */ class EVF_Cache_Helper { /** * Hook in methods. */ public static function init() { add_action( 'admin_notices', array( __CLASS__, 'notices' ) ); } /** * Get prefix for use with wp_cache_set. Allows all cache in a group to be invalidated at once. * * @param string $group Group of cache to get. * @return string */ public static function get_cache_prefix( $group ) { $prefix = wp_cache_get( 'evf_' . $group . '_cache_prefix', $group ); if ( false === $prefix ) { $prefix = 1; wp_cache_set( 'evf_' . $group . '_cache_prefix', $prefix, $group ); } return 'evf_cache_' . $prefix . '_'; } /** * Increment group cache prefix (invalidates cache). * * @param string $group Group of cache to clear. */ public static function incr_cache_prefix( $group ) { wp_cache_incr( 'evf_' . $group . '_cache_prefix', 1, $group ); } /** * Set constants to prevent caching by some plugins. * * @param mixed $return Value to return. Previously hooked into a filter. * @return mixed */ public static function set_nocache_constants( $return = true ) { evf_maybe_define_constant( 'DONOTCACHEPAGE', true ); evf_maybe_define_constant( 'DONOTCACHEOBJECT', true ); evf_maybe_define_constant( 'DONOTCACHEDB', true ); return $return; } /** * Notices function. */ public static function notices() { if ( ! function_exists( 'w3tc_pgcache_flush' ) || ! function_exists( 'w3_instance' ) ) { return; } $config = w3_instance( 'W3_Config' ); $enabled = $config->get_integer( 'dbcache.enabled' ); $settings = array_map( 'trim', $config->get_array( 'dbcache.reject.sql' ) ); if ( $enabled && ! in_array( '_evf_session_', $settings, true ) ) { ?> <div class="error"> <p> <?php /* translators: 1: key 2: URL */ echo wp_kses_post( sprintf( __( 'In order for <strong>database caching</strong> to work with Everest Forms you must add %1$s to the "Ignored Query Strings" option in <a href="%2$s">W3 Total Cache settings</a>.', 'everest-forms' ), '<code>_evf_session_</code>', esc_url( admin_url( 'admin.php?page=w3tc_dbcache' ) ) ) ); ?> </p> </div> <?php } } } EVF_Cache_Helper::init();
Upload File
Create Folder