/
home
/
vianto5
/
hidalgoresidences.mx
/
wp-content
/
plugins
/
sitepress-multilingual-cms
/
inc
/
/home/vianto5/hidalgoresidences.mx/wp-content/plugins/sitepress-multilingual-cms/inc
mkdir
upload
Name
Size
Mode
Actions
absolute-links/
-
0755
rm
actions/
-
0755
rm
core/
-
0755
rm
hacks/
-
0755
rm
local-translation/
-
0755
rm
post-translation/
-
0755
rm
query-filtering/
-
0755
rm
setup/
-
0755
rm
taxonomy-term-translation/
-
0755
rm
tools/
-
0755
rm
translation-jobs/
-
0755
rm
translation-management/
-
0755
rm
translation-proxy/
-
0755
rm
upgrade-functions/
-
0755
rm
url-handling/
-
0755
rm
utilities/
-
0755
rm
wp-nav-menus/
-
0755
rm
wpml-config/
-
0755
rm
cache.php
3982
0644
edit
dl
rm
constants-tm.php
1366
0644
edit
dl
rm
constants.php
6028
0644
edit
dl
rm
deprecated-hooks.php
261
0644
edit
dl
rm
functions-debug-information.php
122
0644
edit
dl
rm
functions-helpers.php
998
0644
edit
dl
rm
functions-load-tm.php
22468
0644
edit
dl
rm
functions-load.php
11590
0644
edit
dl
rm
functions-network.php
4114
0644
edit
dl
rm
functions-sanitation.php
1709
0644
edit
dl
rm
functions-security.php
1395
0644
edit
dl
rm
functions-troubleshooting.php
6916
0644
edit
dl
rm
functions.php
17290
0644
edit
dl
rm
hacks.php
886
0644
edit
dl
rm
icl-admin-notifier.php
24704
0644
edit
dl
rm
import-xml.php
1475
0644
edit
dl
rm
js-scripts.php
590
0644
edit
dl
rm
js-tm-scripts.php
2988
0644
edit
dl
rm
lang-data.php
8963
0644
edit
dl
rm
language-switcher.php
1993
0644
edit
dl
rm
not-compatible-plugins.php
2049
0644
edit
dl
rm
plugin-integration-nextgen.php
1333
0644
edit
dl
rm
plugins-integration.php
1765
0644
edit
dl
rm
template-functions.php
28700
0644
edit
dl
rm
upgrade.php
9865
0644
edit
dl
rm
wpml-api.php
14729
0644
edit
dl
rm
wpml-post-comments.class.php
7093
0644
edit
dl
rm
wpml-post-edit-ajax.class.php
10403
0644
edit
dl
rm
wpml-private-actions-tm.php
3333
0644
edit
dl
rm
wpml-private-actions.php
4690
0644
edit
dl
rm
wpml-private-filters.php
746
0644
edit
dl
rm
wpml_load_request_handler.php
1445
0644
edit
dl
rm
wpml_zip.php
15924
0644
edit
dl
rm
Edit:
/home/vianto5/hidalgoresidences.mx/wp-content/plugins/sitepress-multilingual-cms/inc/cache.php
(3982B)
<?php if ( ! defined( 'ICL_DISABLE_CACHE' ) ) { define( 'ICL_DISABLE_CACHE', false ); } class icl_cache { protected $data; protected $name; protected $cache_to_option; protected $cache_needs_saving; public function __construct( $name = '', $cache_to_option = false ) { $this->data = []; $this->name = $name; $this->cache_to_option = $cache_to_option; $this->cache_needs_saving = false; $this->init(); } public function init() { if ( $this->cache_to_option ) { $this->data = icl_cache_get( $this->name . '_cache_class' ); if ( false === $this->data ) { $this->data = []; } add_action( 'shutdown', [ $this, 'save_cache_if_required' ] ); } } public function save_cache_if_required() { if ( $this->cache_needs_saving ) { icl_cache_set( $this->name . '_cache_class', $this->data ); $this->cache_needs_saving = false; } } public function get( $key ) { if ( ICL_DISABLE_CACHE ) { return null; } return isset( $this->data[ $key ] ) ? $this->data[ $key ] : false; } public function has_key( $key ) { if ( ICL_DISABLE_CACHE ) { return false; } return array_key_exists( $key, (array) $this->data ); } public function set( $key, $value ) { if ( ICL_DISABLE_CACHE ) { return; } if ( $this->cache_to_option ) { $old_value = null; if ( isset( $this->data[ $key ] ) ) { $old_value = $this->data[ $key ]; } if ( $old_value !== $value ) { $this->data[ $key ] = $value; $this->cache_needs_saving = true; } } else { $this->data[ $key ] = $value; } } public function clear() { $this->data = array(); if ( $this->cache_to_option ) { icl_cache_clear( $this->name . '_cache_class' ); } } } if ( ! function_exists( 'icl_disable_cache' ) ) { function icl_disable_cache() { return defined( 'ICL_DISABLE_CACHE' ) && ICL_DISABLE_CACHE; } } if ( ! function_exists( 'icl_cache_get' ) ) { function icl_cache_get( $key ) { $result = false; if ( ! icl_disable_cache() ) { $icl_cache = get_option( '_icl_cache' ); $result = isset( $icl_cache[ $key ] ) ? $icl_cache[ $key ] : false; } return $result; } } if ( ! function_exists( 'icl_cache_set' ) ) { function icl_cache_set( $key, $value = null ) { global $switched; if ( empty( $switched ) && ! icl_disable_cache() ) { $icl_cache = get_option( '_icl_cache' ); if ( false === $icl_cache ) { $icl_cache = []; delete_option( '_icl_cache' ); } if ( ! isset( $icl_cache[ $key ] ) || $icl_cache[ $key ] !== $value ) { if ( ! is_null( $value ) ) { $icl_cache[ $key ] = $value; } elseif ( isset( $icl_cache[ $key ] ) ) { unset( $icl_cache[ $key ] ); } update_option( '_icl_cache', $icl_cache ); } } } } if ( ! function_exists( 'icl_cache_clear' ) ) { function icl_cache_clear( $key = false, $key_as_prefix = false ) { if ( ! icl_disable_cache() ) { global $wpml_term_translations, $wpml_post_translations; $wpml_term_translations->reload(); $wpml_post_translations->reload(); if ( false === $key ) { delete_option( '_icl_cache' ); } else { $icl_cache = get_option( '_icl_cache' ); if ( is_array( $icl_cache ) ) { if ( isset( $icl_cache[ $key ] ) ) { unset( $icl_cache[ $key ] ); } if ( $key_as_prefix ) { $cache_keys = array_keys( $icl_cache ); foreach ( $cache_keys as $cache_key ) { if ( strpos( $cache_key, $key ) === 0 ) { unset( $icl_cache[ $cache_key ] ); } } } if ( false !== strpos( $key, '_per_language' ) ) { foreach ( $icl_cache as $k => $v ) { if ( false !== strpos( $k, $key . '#' ) ) { unset( $icl_cache[ $k ] ); } } } update_option( '_icl_cache', $icl_cache ); } } } do_action( 'wpml_cache_clear' ); } } function w3tc_translate_cache_key_filter( $key ) { global $sitepress; return $sitepress->get_current_language() . $key; }
Save
cmd:
run