Plugin Directory

Changeset 3442694


Ignore:
Timestamp:
01/19/2026 05:17:04 PM (2 months ago)
Author:
wpfixit
Message:
  • Improved API rest point call for cache bypass
Location:
folder-auditor
Files:
81 added
3 edited

Legend:

Unmodified
Added
Removed
  • folder-auditor/trunk/folder-auditor.php

    r3441987 r3442694  
    33 * Plugin Name: Guard Dog Security & Site Lock
    44 * Description: Helps WordPress administrators take full control of their site. It scans critical areas including the root directory, wp-content, plugins, themes, uploads, and .htaccess files to detect anything suspicious such as orphaned folders, leftover files, or hidden PHP in uploads. From the WordPress dashboard, you can safely review, download, or remove items that don’t belong, with built-in protection to ensure required resources remain untouched. In addition, Guard Dog Security lets you lock all files and folders as read-only, preventing unauthorized changes, additions, or deletions to your WordPress installation.
    5  * Version: 5.3
     5 * Version: 5.4
    66 * Author: WP Fix It
    77 * Author URI: https://www.wpfixit.com
  • folder-auditor/trunk/includes/bridge/status.php

    r3441624 r3442694  
    6666    $cachedAt = get_option('wpfa_cached_state_last_built');
    6767
    68     // Best-effort plugin version read (doesn't require the plugin to be "loaded" beyond this file)
    6968    $version = null;
    7069    if ( function_exists('get_plugin_data') ) {
     
    7675    }
    7776
    78     return [
    79         'bridge'       => 1,
    80         'plugin_slug'  => 'folder-auditor/folder-auditor.php',
    81         'version'      => $version,
    82         'locker_loaded'=> $lockerLoaded ? 1 : 0,
    83         'locked'       => $locked,              // null if locker not loaded
    84         'cached'       => $cachedAt ?: null,
     77    $payload = [
     78        'bridge'        => 1,
     79        'plugin_slug'   => 'folder-auditor/folder-auditor.php',
     80        'version'       => $version,
     81        'locker_loaded' => $lockerLoaded ? 1 : 0,
     82        'locked'        => $locked,
     83        'cached'        => $cachedAt ?: null,
     84        'ts'            => time(), // optional: helps you visually confirm freshness
    8585    ];
     86
     87    $res = new WP_REST_Response( $payload, 200 );
     88
     89    // Strong anti-cache headers for browsers + CDNs
     90    $res->set_headers([
     91        'Cache-Control'      => 'no-store, no-cache, must-revalidate, max-age=0',
     92        'Pragma'             => 'no-cache',
     93        'Expires'            => 'Wed, 11 Jan 1984 05:00:00 GMT',
     94        'CDN-Cache-Control'  => 'no-store',
     95        'Surrogate-Control'  => 'no-store',
     96        'Vary'               => 'Accept-Encoding',
     97    ]);
     98
     99    return $res;
    86100}
    87101}
  • folder-auditor/trunk/readme.txt

    r3441987 r3442694  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 5.3
     8Stable tag: 5.4
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9797== Changelog ==
    9898
     99= 5.4 =
     100* Improved API rest point call for cache bypass
     101
    99102= 5.3 =
    100103* Fixed permissions issue with Site Lock and MainWP
     
    241244== Upgrade Notice ==
    242245
     246= 5.4 =
     247* Improved API rest point call for cache bypass
     248
    243249= 5.3 =
    244250* Fixed permissions issue with Site Lock and MainWP
Note: See TracChangeset for help on using the changeset viewer.