PUM_Extension_Updater::set_version_info_cache( $value = '', $cache_key = '' )
Description Description
Source Source
File: classes/Extension/Updater.php
public function set_version_info_cache( $value = '', $cache_key = '' ) { if( empty( $cache_key ) ) { $cache_key = $this->cache_key; } $data = array( 'timeout' => strtotime( '+3 hours', time() ), 'value' => json_encode( $value ) ); update_option( $cache_key, $data, 'no' ); }
Expand full source code Collapse full source code View on Trac