• ssfa2245

    (@ssfa2245)


    I’m running into a strange issue with my Cloudflare CDN integration. After entering all my Cloudflare information (API key/token, email, etc.), everything saves correctly and works as expected.

    However, after a few days:

    • The Cloudflare API setting switches to OFF
    • All Cloudflare fields reset to blank
    • The integration gets completely disabled without me changing anything

    This has happened multiple times now. The settings always save initially, but then get wiped after a few days.

    Has anyone else experienced this behavior?
    Is there a known reason why the Cloudflare API settings would automatically reset like this?

    • This topic was modified 5 months ago by ssfa2245.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    no , it’s not , something must be wrong

    does it have any pattern when it will occur ? and this is the only setting that gets affected ?

    Thread Starter ssfa2245

    (@ssfa2245)

    This issue is happening after a few days randomly. It is getting very frustrating.

    Thread Starter ssfa2245

    (@ssfa2245)

    Any updates on this? @qtwrk this is the only setting getting affected. Thanks!

    Plugin Support qtwrk

    (@qtwrk)

    unfortunately no , no really , I set up 2 test sites , both of them shows remaining CF data

    <?php
    require('./wp-load.php');

    function mask_value($value) {
    if (empty($value)) {
    return "Not Set";
    }
    $len = strlen($value);
    $first = substr($value, 0, 2);
    $last = substr($value, -2);
    return $first . "*****" . $last;
    }


    $cloudflare_email = get_option('litespeed.conf.cdn-cloudflare_email');
    $cloudflare_key = get_option('litespeed.conf.cdn-cloudflare_key');

    $masked_email = mask_value($cloudflare_email);
    $masked_key = mask_value($cloudflare_key);

    $log_entry = "[" . date('Y-m-d H:i:s') . "]\n";
    $log_entry .= "Email: " . $masked_email . "\n";
    $log_entry .= "Key: " . $masked_key . "\n";
    $log_entry .= "------------------------------------------\n";

    $file_path = __DIR__ . '/cf_data_log.txt';

    file_put_contents($file_path, $log_entry, FILE_APPEND);

    let’s try something

    create a file , name it like cf_data_log.php , put it at same dir as your wp-load.php

    then set up a system cron job to trigger it every 5 minutes

    let’s at least , try to , obtain when the data gets reset

    then check the requests lists around that 5 minutes window , see if any suspicious request happened

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘LiteSpeed Cache Cloudflare CDN Issues’ is closed to new replies.