Dear Sirs,
Thank you by this plugin!
Please, my posts are served also at another languages, for example:
example.com/post-example/ (original)
example.com/post-example/?lang=es (spanish)
I made a change at nginx to also cache this particular query strings of ‘lang’.
Is it possible to when updating, delete, etc the post, to automatically edit / delete the referred cache of the versions at another languages?
Thanks and Regards,
Tony
]]>Hi, I love this plugin – it’s fast and lightweight, but I’m now having an issue.
When this plugin is enabled and I attempt to check out with a WooCommerce product in the cart using the Stripe payment gateway, I get the following fatal errors:
[10-Sep-2019 22:29:38 UTC] PHP Fatal error: Uncaught Error: Call to undefined function submit_button() in /var/www/html/urgencycouponsformailinglists.com/wp-admin/includes/file.php:2164
Stack trace:
#0 /var/www/html/urgencycouponsformailinglists.com/wp-content/plugins/snipe-nginx-cache/includes/filesystem_helper.php(37): request_filesystem_credentials('', 'ftpext', false, '/var/run/nginx-...', Array, true)
#1 /var/www/html/urgencycouponsformailinglists.com/wp-content/plugins/snipe-nginx-cache/includes/filesystem_helper.php(55): CSNX_Filesystem_Helper->initialize_filesystem('/var/run/nginx-...')
#2 /var/www/html/urgencycouponsformailinglists.com/wp-content/plugins/snipe-nginx-cache/includes/filesystem_helper.php(92): CSNX_Filesystem_Helper->is_valid_path('/var/run/nginx-...')
#3 /var/www/html/urgencycouponsformailinglists.com/wp-content/plugins/snipe-nginx-cache/includes/cache-sniper-nginx-comments.php(57): CSNX_Filesystem_Helper->delete('/var/run/nginx-...')
#4 /var/www/html/urgencycouponsformailinglists.com/wp-content/plugins/snipe-nginx-cache/include in /var/www/html/urgencycouponsformailinglists.com/wp-admin/includes/file.php on line 2164
I’ve tried a brand new product, set a price and set it to “virtual,” and I get the same thing. Are you able to replicate this?
I see this on two different sites, and if I disable this plugin, the error goes away.
Thank you.
Steve
Hello,
this plugin doesn’t work on my server configuration.
For every Website on my Server i use one separate Systemuser.
Nginx running on www-data. PHP running on Website User and listen User is www-data.
For “FastCGI Path” permissions i tested all possibilities.
Result…. not work.
Maybe you can help me ??
]]>Does this plugin support Multisite/Network? Does each site need to setup the nginx snipe settings? Or are the settings in the superAdmin (Network) panel?
Thanks!!
]]>After update to 1.0.4.1, I’am getting a HTTP ERROR 500 while deleting media file.
This is error logs from WP Debug:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Cache_Sniper_Nginx::csnx_delete_current_page_cache_on_update(), 1 passed in /usr/local/www/mysite/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /usr/local/www/mysite/wp-content/plugins/snipe-nginx-cache/cache-sniper-nginx.php:180 Stack trace: #0 /usr/local/www/mysite/wp-includes/class-wp-hook.php(286): Cache_Sniper_Nginx->csnx_delete_current_page_cache_on_update(5759) #1 /usr/local/www/mysite/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /usr/local/www/mysite/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /usr/local/www/mysite/wp-includes/post.php(5084): do_action('delete_post', 5759) #4 /usr/local/www/mysite/wp-admin/post.php(260): wp_delete_attachment(5759, true) #5 {main} thrown in /usr/local/www/mysite/wp-content/plugins/snipe-nginx-cache/cache-sniper-nginx.php on line 180
Above error doesnt exist on version 1.0.3.1.
Regards,
Yos
Will this work in unison with Engintron to flush the cache?
]]>Hello,
first thank you very much for this update, it implements features that I realy needed.
But after this update, when I answer a comment over the dashboard, I am getting an error. The Answer is in the database and after reloading the page I can see it, but this appears in the error log:
2018/09/19 11:30:34 [error] 782#782: *198121 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Cache_Sniper_Nginx_Comments::csnx_delete_current_page_cache_on_wp_insert_comment(), 1 passed in /wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /wp-content/plugins/snipe-nginx-cache/includes/cache-sniper-nginx-comments.php:50
Stack trace:
#0 /wp-includes/class-wp-hook.php(288): Cache_Sniper_Nginx_Comments->csnx_delete_current_page_cache_on_wp_insert_comment(2009)
#1 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#2 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /wp-includes/comment.php(1811): do_action('wp_insert_comme...', 2009, Object(WP_Comment))
#4 /wp-includes/comment.php(1996): wp_insert_comment(Array)
Can you check this?
Regards
Myar
Hi,
great plugin!
But I have a question:
How can I trigger the action to clear a post cache when the wordpress function wp_insert_comment is called?
I have a standalone forum software and developed a plugin to insert comments from the forum to the comments of a post.
So after getting the inforamtions from the forum post I call wp_insert_comment($data) and the comment ist created in the WP Database. But the cache for the post is not cleared so the comment that is submitted from the forum is not showing up immediately.
How can I trigger your plugin function after submit the comment with wp_insert_comment?
Can you help me here please?
]]>Hello!
At first: a great plugin, it does what I need except one thing: After publishing a Post or Page the cache for the index page is not cleared. So people who are looking at my start page don’t know that there is a new post.
Can you add a function, to clear the index page cache?
Hello, we need some custom development for Nginx Cache Sniper. Please give me an email address so we can discuss further.
]]>I’ve noticed that the “Clear entire cache” function executes a $wp_filesystem->rmdir( $path, $recursive );
which has the unwanted effect of deleting the directory configured as the fastcgi cache path. This call should instead delete only the content of this directory, leaving the directory itself unchanged.
For example, I have configured:
fastcgi_cache_path /var/nginx/fastcgi_cache levels=1:2 keys_zone=generic:100m inactive=24h;
I install the plugin, activate it and browse some of the pages, the nginx cache is populated as expected:
$ ls -lhR /var/nginx/fastcgi_cache/
/var/nginx/fastcgi_cache/:
total 4.0K
drwx------ 4 www www 4.0K Feb 10 16:25 c
/var/nginx/fastcgi_cache/c:
total 8.0K
drwx------ 2 www www 4.0K Feb 10 16:25 9b
drwx------ 2 www www 4.0K Feb 10 16:19 ce
/var/nginx/fastcgi_cache/c/9b:
total 16K
-rw------- 1 www www 13K Feb 10 16:25 bb179c0a251c4f6e1d0244513a8769bc
/var/nginx/fastcgi_cache/c/ce:
total 24K
-rw------- 1 www www 24K Feb 10 16:19 71b1db31af259d63f6d8f12987a73cec
I then choose “Clear entire cache”, which correctly empties the cache, but the cache directory has been removed as well:
ls -lhR /var/nginx/fastcgi_cache/
ls: cannot access /var/nginx/fastcgi_cache/: No such file or directory
This bug is not too serious, since nginx is able to recreate the FastCGI cache directory on its own; however, I still think that it’s worth fixing to avoid deleting a filesystem object explicitly referenced in the nginx configuration.
]]>