Changeset 3425482
- Timestamp:
- 12/22/2025 03:46:43 PM (3 months ago)
- Location:
- static-cache-wrangler/trunk
- Files:
-
- 3 edited
-
includes/class-stcw-generator.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
static-site.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
static-cache-wrangler/trunk/includes/class-stcw-generator.php
r3411660 r3425482 81 81 } 82 82 83 // Don't cache admin, logged-in users, special pages, or non-GET requests83 // Don't cache admin, logged-in users, special pages, archives, or non-GET requests 84 84 $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 : '/'; 85 90 86 91 if ( … … 91 96 || is_preview() 92 97 || 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/) 93 102 || (defined('REST_REQUEST') && REST_REQUEST) 94 103 || is_trackback() 95 104 || is_comment_feed() 96 105 || $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 97 108 ) { 98 109 return; -
static-cache-wrangler/trunk/readme.txt
r3420619 r3425482 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.1. 27 Stable tag: 2.1.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 68 68 69 69 ### Key Features 70 71 **What's Fixed in 2.1.3:** 72 73 = 2.1.3 = 74 75 Version 2.1.3 fixes errantly cached files and directories related to index.php and admin in URLs. 70 76 71 77 **What's New in 2.1.2:** … … 330 336 331 337 == 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. 332 342 333 343 = 2.1.2 = -
static-cache-wrangler/trunk/static-site.php
r3418566 r3425482 4 4 * Plugin URI: https://moderncli.dev/code/static-cache-wrangler/ 5 5 * Description: Generate static HTML files with fully local CSS/JS/Images/Fonts 6 * Version: 2.1. 26 * Version: 2.1.3 7 7 * Author: Derick Schaefer 8 8 * Author URI: https://moderncli.dev/author/ … … 17 17 18 18 // Plugin constants 19 define('STCW_VERSION', '2.1. 1');19 define('STCW_VERSION', '2.1.3'); 20 20 define('STCW_PLUGIN_DIR', plugin_dir_path(__FILE__)); 21 21 define('STCW_PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.