pluginkollektiv / cachify

Smart but efficient cache solution for WordPress. Use DB, HDD, APC or Memcached for storing your blog pages. Make WordPress faster!
https://wordpress.org/plugins/cachify/
GNU General Public License v2.0
101 stars 32 forks source link

Add filter to disable gzip file creation #262

Closed angcl closed 2 years ago

angcl commented 2 years ago

@florianbrinkmann and I worked on this PR that adds a filter that allows to disable gzip file creation.

Fixes #197

stklcode commented 2 years ago

Filter looks good.

We should conditionally remove the GZip instructions from the .htaccess instructions in the settings tab, too, if generation is disabled, even though this should be obvious … but we all know copy&pasting is one thing, understanding another.

Did we discusse a checkbox in the settings that may address more users?

florianbrinkmann commented 2 years ago

I guess that is a feature that is only relevant for a small part of our users, so that a filter should be enough, but that is only a guess :)

angcl commented 2 years ago

gzip instructions now won't be added to .htaccess instructions if gzip file creation is disabled. :)