PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
/
utilities
<?php /** * Class WPML_Transient * * Due to some conflicts between cached environments (e.g. using W3TC) and the normal * WP Transients API, we've added this class which should behaves almost like the normal * transients API. Except for the fact that it is stored as normal options, so WP won't * recognize/treat it as a transient. */ class WPML_Transient { const WPML_TRANSIENT_PREFIX = '_wpml_transient_'; /** * @param string $name * @param string $value * @param string $expiration */ public function set( $name, $value, $expiration = '' ) { $data = array( 'value' => $value, 'expiration' => $expiration ? time() + (int) $expiration : '', ); update_option( self::WPML_TRANSIENT_PREFIX . $name, $data ); } /** * @param string $name * * @return string */ public function get( $name ) { $data = get_option( self::WPML_TRANSIENT_PREFIX . $name ); if ( $data ) { if ( (int) $data['expiration'] < time() ) { delete_option( self::WPML_TRANSIENT_PREFIX . $name ); return ''; } return $data['value']; } return ''; } /** * @param string $name */ public function delete( $name ) { delete_option( self::WPML_TRANSIENT_PREFIX . $name ); } }
[-] class-wpml-wp-cache-factory.php
[edit]
[-] class-wpml-inactive-content.php
[edit]
[-] class-wpml-slash-management.php
[edit]
[-] class-wpml-transient.php
[edit]
[-] class-wpml-ajax.php
[edit]
[-] class-wpml-locale.php
[edit]
[-] class-wpml-string-functions.php
[edit]
[-] class-wpml-deactivate-old-media-factory.php
[edit]
[-] class-wpml-global-ajax.php
[edit]
[+]
admin
[-] AutoAdjustIdsFactory.php
[edit]
[-] wpml-queried-object.php
[edit]
[-] class-wpml-wp-query-api.php
[edit]
[-] class-debug-backtrace.php
[edit]
[-] class-wpml-temporary-switch-admin-language.php
[edit]
[-] class-wpml-flags-factory.php
[edit]
[-] class-wpml-deactivate-old-media.php
[edit]
[-] AutoAdjustIds.php
[edit]
[-] Resources.php
[edit]
[-] class-wpml-encoding.php
[edit]
[-] class-wpml-temporary-switch-language.php
[edit]
[-] class-wpml-flags.php
[edit]
[+]
..
[-] Pager.php
[edit]
[-] class-wpml-wp-post.php
[edit]
[-] class-wpml-cache-factory.php
[edit]
[-] wpml-uuid.php
[edit]
[-] class-wpml-encoding-validation.php
[edit]
[-] wpml-languages-notices.php
[edit]
[-] class-wpml-non-persistent-cache.php
[edit]
[+]
user
[-] class-wpml-wp-cache.php
[edit]
[+]
lock
[-] class-wpml-simple-language-selector.php
[edit]
[-] class-wpml-debug-backtrace.php
[edit]
[-] class-wpml-wp-taxonomy-query.php
[edit]
[-] class-wpml-wp-cache-item.php
[edit]
[-] class-wpml-translate-link-targets.php
[edit]