Plugin Directory

Changeset 3233954


Ignore:
Timestamp:
02/03/2025 12:41:16 PM (14 months ago)
Author:
invoked
Message:

cache issue fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • biblio-dispatch/tags/1.2.3/bibliodispatch-plugin.php

    r3232804 r3233954  
    7171    $url = add_query_arg($api_params, LICENSE_SERVER_URL);
    7272
     73    // Set headers to disable caching
     74    $args = array(
     75        'method'    => 'POST',
     76        'timeout'   => 20,
     77        'sslverify' => true,
     78        'headers'   => array(
     79            'Cache-Control' => 'no-cache, no-store, must-revalidate',
     80            'Pragma'        => 'no-cache',
     81            'Expires'       => '0',
     82        ),
     83    );
     84
    7385    // Send query to the license manager server
    74     $response = wp_remote_get($url, array('timeout' => 20, 'sslverify' => true));  // Set sslverify to true for production
     86    $response = wp_remote_post($url, array('timeout' => 20, 'sslverify' => true));  // Set sslverify to true for production
    7587    // Check for errors in the response
    7688    if (is_wp_error($response)) {
Note: See TracChangeset for help on using the changeset viewer.