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

A lot of warnings in www error log #55

Closed DevIntact closed 4 years ago

DevIntact commented 5 years ago

Hello,

I have a lot of php warnings in the debug log.

Here is an example :

[03-Jun-2019 12:52:07 UTC] PHP Warning:  scandir(/srv/.../htdocs/wp-content/cache/cache-enabler/www.wesbite.com/lycee-general/2nde-generale-et-technologique): failed to open dir: No such file or directory in /srv/.../htdocs/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 355
[03-Jun-2019 12:52:07 UTC] PHP Warning:  scandir(): (errno 2): No such file or directory in /srv/.../htdocs/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 355
[03-Jun-2019 12:52:07 UTC] PHP Warning:  array_diff(): Argument #1 is not an array in /srv/.../htdocs/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 357
[03-Jun-2019 12:52:07 UTC] PHP Warning:  unlink(/srv/.../htdocs/wp-content/cache/cache-enabler/www.wesbite.com/lycee-general/baccalaureat-general-specialite-numerique-et-sciences-informatiques-nsi): No such file or directory in /srv/.../htdocs/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 371
[03-Jun-2019 12:52:07 UTC] PHP Warning:  unlink(/srv/.../htdocs/wp-content/cache/cache-enabler/www.wesbite.com/lycee-general/baccalaureat-s-sciences-de-ingenieur-si): No such file or directory in /srv/.../htdocs/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 371
[03-Jun-2019 12:52:07 UTC] PHP Warning:  unlink(/srv/.../htdocs/wp-content/cache/cache-enabler/www.wesbite.com/lycee-general/index.html): No such file or directory in /srv/.../htdocs/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 371
[03-Jun-2019 12:52:07 UTC] PHP Warning:  unlink(/srv/.../htdocs/wp-content/cache/cache-enabler/www.another-website.fr): No such file or directory in /srv/.../htdocs/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 371

Environnement :

WPMU 4.9.8 PHP 5.6 Cache Enabler 1.3.4

Other things to know :

The cache expiration is set to 0, in order the cache never expires. I use mapbox for my maps and so I generate all hours a new temporary token. Each time I get this new temporary token, I clear the cache for all the websites via third party