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 clear request processing #139

Closed coreykn closed 4 years ago

coreykn commented 4 years ago

Update clear request processing:

Update notices being called with admin_notices to not use the show_message() function as this is unnecessary when printing admin notices from this hook.

Combine Cache_Enabler::warning_is_permalink() with Cache_Enabler::requirements_check() as it is also a requirement of Cache Enabler.

Add Cache_Enabler::_is_plain_permalink_structure() in place of Cache_Enabler_Disk::is_permalink(). Bypass the cache if a plain permalink structure is set instead of only creating an instance of Cache_Enabler_Disk if a custom permalink structure is set.