/** * Force Nginx cache purge on post publish/update * Added: 2026-03-16 — fixes missing NPPPurgeCache hooks */ function yovizag_purge_nginx_on_publish( $new_status, $old_status, $post ) { if ( $post->post_type !== 'post' ) return; if ( $new_status !== 'publish' && $old_status !== 'publish' ) return; $cache_path = '/var/run/nginx-cache'; if ( is_dir( $cache_path ) ) { shell_exec( 'find ' . escapeshellarg( $cache_path ) . ' -type f -delete' ); } } add_action( 'transition_post_status', 'yovizag_purge_nginx_on_publish', 10, 3 ); Visakhapatnam connectivity projects Archives - Vizag

All posts tagged in Visakhapatnam connectivity projects

1Article
Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...