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

Version 1.8.2 on IIS #288

Closed mmojadad closed 3 years ago

mmojadad commented 3 years ago

Hello After update to version 1.8.1 and then 1.8.2, In \wp-content\cache\ folder "cache-enabler" and cache content not generate. I am using IIS, I faced the issue in both new versions.

Regards,

coreykn commented 3 years ago

While debugging is enabled, like to a log file, does this still occur after deactivating and then activating the plugin? If yes, did you happen to receive any errors in that file?

Also, would it be possible for you to share your Site Health Info through our contact form? This can be obtained by going to the WordPress dashboard > Tools > Site Health > Info > Copy site info to clipboard.

mmojadad commented 3 years ago

@coreykn I will try and inform you, Also already i am online and ready to provide you full remote access to the serve via anydesk if its helpful. Just message me via teletgram @modirafzar

mmojadad commented 3 years ago

@coreykn Hi I share my Site Health Info through your contact form.

mmojadad commented 3 years ago

Some more info : I tested it on 2 website on my server , Also a friend's website in another server Win 2019 ( IIS ) with same result.

coreykn commented 3 years ago

Thank you, @mmojadad. That is really appreciated. I'm thinking this may be related to the use of the $_SERVER['SCRIPT_FILENAME'] superglobal as I'm just noticing it's not in the CGI specs, which means it can't always be relied on. I do have a new solution that I'm working on.

Are you interested in testing this theory to see if it's applicable to your issue? It would take going to the wp-content/plugins/cache-enabler/inc/cache_enabler_engine.class.php file and temporarily replacing the first snippet in the latest version with the second snippet from version 1.7.2:

https://github.com/keycdn/cache-enabler/blob/612ada2b9eeb95f3017eddef654f80cfd39def0a/inc/cache_enabler_engine.class.php#L190-L197

https://github.com/keycdn/cache-enabler/blob/45db4c70580c3d03f13ec7bc1e627ad2ebc53135/inc/cache_enabler_engine.class.php#L211-L218

mmojadad commented 3 years ago

@coreykn Thank you too, Done! And now working fine, Cache content generated on \wp-content\cache\cache-enabler\nmydomain.com and also webp version now serving .

mmojadad commented 3 years ago

@coreykn I did the same modifications on cache_enabler_engine.class.php another domain ( Same Server ), But cache not generate. Any idea? more test ?

coreykn commented 3 years ago

Great! 🙂 I'm glad we were able to identify why this was occurring on that site. PR #289 will be the changes introduced in the next version to fix this issue.

As for the other site mentioned, if you experience this issue after updating to version 1.8.3 can you please send over your Site Health Info for that site?

mmojadad commented 3 years ago

@coreykn Good news! Yes sure, If issue occur for the other site, I will provide you Site Health.

When version 1.8.3 will release?