Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
0 ) {
$src = $preview_filename;
$dest = $production_filename;
} else {
$src = $production_filename;
$dest = $preview_filename;
}
if ( ! @copy( $src, $dest ) ) {
Util_Activation::throw_on_write_error( $dest );
}
}
if ( defined( 'W3TC_CONFIG_CACHE_ENGINE' ) ) {
ConfigCache::remove_item( $blog_id, $preview );
}
}
/**
* Saves an item to the configuration storage.
*
* @param int $blog_id ID of the blog to save the item to.
* @param bool $preview Whether to save to the preview configuration.
* @param array $data Data to be saved in the configuration.
*
* @return void
*/
public static function save_item( $blog_id, $preview, $data ) {
if ( defined( 'W3TC_CONFIG_DATABASE' ) && W3TC_CONFIG_DATABASE ) {
ConfigDbStorage::save_item( $blog_id, $preview, $data );
} else {
$filename = Config::util_config_filename( $blog_id, $preview );
if ( defined( 'JSON_PRETTY_PRINT' ) ) {
$config = wp_json_encode( $data, JSON_PRETTY_PRINT );
} else { // for older php versions.
$config = wp_json_encode( $data );
}
Util_File::file_put_contents_atomic( $filename, '' . $config );
}
if ( defined( 'W3TC_CONFIG_CACHE_ENGINE' ) ) {
ConfigCache::remove_item( $blog_id, $preview );
}
}
}