Plugin Directory

Changeset 3425482


Ignore:
Timestamp:
12/22/2025 03:46:43 PM (3 months ago)
Author:
derickschaefer
Message:

Update trunk to version 2.1.3

Location:
static-cache-wrangler/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • static-cache-wrangler/trunk/includes/class-stcw-generator.php

    r3411660 r3425482  
    8181        }
    8282       
    83         // Don't cache admin, logged-in users, special pages, or non-GET requests
     83        // Don't cache admin, logged-in users, special pages, archives, or non-GET requests
    8484        $request_method = isset($_SERVER['REQUEST_METHOD']) ? sanitize_text_field(wp_unslash($_SERVER['REQUEST_METHOD'])) : 'GET';
     85       
     86        // Get sanitized request URI for URL pattern checks
     87        $request_uri = isset($_SERVER['REQUEST_URI'])
     88            ? sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI']))
     89            : '/';
    8590       
    8691        if (
     
    9196            || is_preview()
    9297            || is_feed()
     98            || is_author()  // Exclude author archives (/author/username/)
     99            || is_date()    // Exclude date archives (/2025/12/, /2025/12/21/)
     100            || is_tag()     // Exclude tag archives (/tag/tagname/)
     101            || is_category() // Exclude category archives (/category/categoryname/)
    93102            || (defined('REST_REQUEST') && REST_REQUEST)
    94103            || is_trackback()
    95104            || is_comment_feed()
    96105            || $request_method !== 'GET'
     106            || strpos($request_uri, 'index.php') !== false  // Exclude malformed index.php URLs
     107            || strpos($request_uri, '?') !== false          // Exclude URLs with query strings
    97108        ) {
    98109            return;
  • static-cache-wrangler/trunk/readme.txt

    r3420619 r3425482  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 2.1.2
     7Stable tag: 2.1.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6868
    6969### Key Features
     70
     71**What's Fixed in 2.1.3:**
     72
     73= 2.1.3 =
     74
     75Version 2.1.3 fixes errantly cached files and directories related to index.php and admin in URLs.
    7076
    7177**What's New in 2.1.2:**
     
    330336
    331337== Changelog ==
     338
     339= 2.1.3 =
     340* **IMPROVED:** Adds exclusions for index.php, username, and other bot cralwed URLs that were creating errant cache files.
     341* **FIX:** Version number corrected.
    332342
    333343= 2.1.2 =
  • static-cache-wrangler/trunk/static-site.php

    r3418566 r3425482  
    44 * Plugin URI: https://moderncli.dev/code/static-cache-wrangler/
    55 * Description: Generate static HTML files with fully local CSS/JS/Images/Fonts
    6  * Version: 2.1.2
     6 * Version: 2.1.3
    77 * Author: Derick Schaefer
    88 * Author URI: https://moderncli.dev/author/
     
    1717
    1818// Plugin constants
    19 define('STCW_VERSION', '2.1.1');
     19define('STCW_VERSION', '2.1.3');
    2020define('STCW_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2121define('STCW_PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.