keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

update index file handling #289

Closed coreykn closed 3 years ago

coreykn commented 3 years ago

Update the Cache_Enabler_Engine::is_index() method to use the $_SERVER['SCRIPT_NAME'] again like it was before PR #260 as this is in the CGI/1.1 specification, making it a more reliable superglobal. This method will now check if the CACHE_ENABLER_INDEX_FILE constant ends with $_SERVER['SCRIPT_NAME'] instead of if it equals $_SERVER['SCRIPT_FILENAME'].