Skip to content

Purge All is broking the website #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thiagolcks opened this issue Jul 31, 2016 · 5 comments
Closed

Purge All is broking the website #120

thiagolcks opened this issue Jul 31, 2016 · 5 comments

Comments

@thiagolcks
Copy link

Hi,

After I've run the Purge All I'm getting the error in all public pages (not logged in): mkdir() "/var/run/nginx-cache/temp/8" failed (2: No such file or directory)

If I restart the server it's all good. It seems that the Purge All is deleting the temp folder, and nginx is not creating the folder again, just when restarted.

I could fix it adding the following line to the file purger.php after the line 752:
mkdir(RT_WP_NGINX_HELPER_CACHE_PATH . '/temp');

I'm using nginx 1.11.3.

Thanks

@johan-chassaing
Copy link
Contributor

Hi,
I have actually the same issue.
Indeed, ngnix helper is removing all files and folders un nginx cache directory.
The restart of the nginx service give back the website.
From the nginx forum, I saw the purge should be done only on the files and not on the folders.

Johan

@johan-chassaing
Copy link
Contributor

johan-chassaing commented Sep 7, 2016

vim nginx-helper/purger.php +774
replace true per false
$this->unlinkRecursive( $dir . '/' . $obj, false );

the folders will not be deleted.
Regards,
Johan

@johan-chassaing
Copy link
Contributor

#123

@chandrapatel
Copy link
Contributor

Hello @johan-chassaing @thiagolcks

I've accepted PR and will release update soon. Thanks. I'm closing this issue.

Regards,
Chandra

@chandrapatel
Copy link
Contributor

Hello,

I've released new version 1.9.10. Please update the plugin. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants