{"id":10732,"date":"2010-10-01T13:23:12","date_gmt":"2010-10-01T13:23:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/nginx-manager\/"},"modified":"2014-05-05T10:32:05","modified_gmt":"2014-05-05T10:32:05","slug":"nginx-manager","status":"publish","type":"plugin","link":"https:\/\/so.wordpress.org\/plugins\/nginx-manager\/","author":28452,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.4.4","stable_tag":"trunk","tested":"3.9.40","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"NGINX Manager","header_author":"Simone Fumagalli & Marco Zanzottera","header_description":"","assets_banners_color":"","last_updated":"2014-05-05 10:32:05","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/nginx-manager\/","header_author_uri":"http:\/\/www.iliveinperego.com","rating":5,"author_block_rating":0,"active_installs":20,"downloads":6668,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.1","1.2","1.2.1","1.2.2","1.3","1.3.1","1.3.2","1.3.3","1.3.4","1.3.4.1","1.3.4.2","1.3.4.3","1.3.4.4"],"block_files":[],"assets_screenshots":{"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1573774","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573774","resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1573774","resolution":"2","location":"plugin"}},"screenshots":{"1":"Overview","2":"Configuration page","3":"Log"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[146,2437,247,7914],"plugin_category":[52,54],"plugin_contributors":[89593,89594],"plugin_business_model":[],"class_list":["post-10732","plugin","type-plugin","status-publish","hentry","plugin_tags-cache","plugin_tags-nginx","plugin_tags-performance","plugin_tags-purge","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-hpatoio","plugin_contributors-rukbat","plugin_committers-hpatoio","plugin_committers-rukbat"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/nginx-manager.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/nginx-manager\/trunk\/screenshot-1.png?rev=1573774","caption":"Overview"},{"src":"https:\/\/ps.w.org\/nginx-manager\/trunk\/screenshot-2.png?rev=1573774","caption":"Configuration page"},{"src":"https:\/\/ps.w.org\/nginx-manager\/trunk\/screenshot-3.png?rev=1573774","caption":"Log"}],"raw_content":"<!--section=description-->\n<p>Each time an element of your blog is modified (post, page, media, custom post) its cached version, and of all the related elements (categories, archives and custom taxonomies) are deleted.<\/p>\n\n<p>In this way your cache has always the latest version of the page.<\/p>\n\n<p>Extra :<\/p>\n\n<ul>\n<li>Two extra HTTP header are added to the response so that you can see if the page you are viewing is cached and when it was cached.<\/li>\n<li>A logging system allow you to see which page were cached and when.<\/li>\n<li>You can add personal URLs to be purged when the post is modified<\/li>\n<li>Purge of future posts is handled with an external script.<\/li>\n<li>Integration with NextGEN Gallery plugin.<\/li>\n<\/ul>\n\n<p>Credits :<\/p>\n\n<ul>\n<li>This plugin is based on the structure of famous NextGEN Gallery plugin.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p><em>IMPORTANT<\/em><\/p>\n\n<p>If you are using a proxy you must modify the file wp-includes\/class-http.php and delete (or comment out) lines 1346-1347 (WP 3.3) in function send_through_proxy():<\/p>\n\n<p>if ( $check['host'] == 'localhost' || $check['host'] == $home['host'] )\n    return false;<\/p>\n\n\n\n<ol>\n<li>Upload the directory <code>nginx-manager<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Configure Nginx. Install Cache Purge module http:\/\/labs.frickle.com\/nginx_ngx_cache_purge\/ and configure the cache<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<p>For questions or support post a comment here http:\/\/www.iliveinperego.com\/2010\/10\/nginx-automatically-cache-purge\/<\/p>\n\n<h4>Scheduled posts script<\/h4>\n\n<p>To avoid problems with scheduled posts you must set a cron job that i<\/p>\n\n<ol>\n<li>Edit \/script\/future_posts_cron.php and set $_SERVER['HTTP_HOST'] to you host and ABSPATH_SCRIPT to your Wordpress installation path<\/li>\n<li><p>Add a job in your crontab to schedule the script to run every minute<\/p>\n\n<p>For example :<\/p>\n\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>\/usr\/local\/bin\/php \/var\/documentroot\/wp-content\/plugins\/nginx-manager\/script\/future_posts_cron.php<\/li>\n<\/ul><\/li>\n<\/ul><\/li>\n<\/ul><\/li>\n<\/ul><\/li>\n<\/ul><\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.3.4.4 (2013 01 21)<\/h4>\n\n<ul>\n<li>BUG : Remove old plugin option \"custom_post_types_recognized\" for future post script (thx retroriff)<\/li>\n<\/ul>\n\n<h4>1.3.4.3 (2012 06 19)<\/h4>\n\n<ul>\n<li>EDIT : Purge (homepage) when widgets are saved or dragged to a sidebar (thx David Scatigna &amp; metalitalia.com crew)<\/li>\n<li>NEW : Purge post on post transition status (thx David Scatigna &amp; metalitalia.com crew)<\/li>\n<\/ul>\n\n<h4>1.3.4.2 (2012 02 29)<\/h4>\n\n<ul>\n<li>BUG : Fixed cache for feed pages<\/li>\n<\/ul>\n\n<h4>1.3.4.1 (2012 01 04)<\/h4>\n\n<ul>\n<li>BUG : Fixed mobile regex<\/li>\n<\/ul>\n\n<h4>1.3.4 (2011 12 27)<\/h4>\n\n<ul>\n<li>BUG : Now PurgeUrl also consider the query_string<\/li>\n<li>NEW : Added an hook to run a function when a NGG gallery is purged. Hook name nm_ngg_gallery_purge<\/li>\n<li>NEW : Added options to choose if purge if user agent is from a mobile device and edit the regex.<\/li>\n<li>EDIT : CPT identification by options, not automatically<\/li>\n<\/ul>\n\n<h4>1.3.3 (2011 09 20)<\/h4>\n\n<ul>\n<li>NEW : If the request is from a mobile device disable cache<\/li>\n<li>NEW : NextGEN Gallery integration: Purge post that contains the image\/thumb gallery edited<\/li>\n<\/ul>\n\n<h4>1.3.2 (2011 06 21)<\/h4>\n\n<ul>\n<li>NEW : Purge (homepage) when widgets are dragged to a sidebar<\/li>\n<li>NEW : Purge post type archive link<\/li>\n<li>BUG : Fixed few small bugs and typos<\/li>\n<\/ul>\n\n<h4>1.3.1 (2011 03 24)<\/h4>\n\n<ul>\n<li>NEW : Purge (homepage) when a term taxonomy is edited or deleted<\/li>\n<li>BUG : Default options updated with values for purge on post deleting<\/li>\n<\/ul>\n\n<h4>1.3 (2011 03 16)<\/h4>\n\n<ul>\n<li>NEW : Purge when a post is moved to the trash: you can choose between purge by options or purge all the blog<\/li>\n<li>BUG : Fixed purge of comments: do not purge when status is set to 'delete'<\/li>\n<\/ul>\n\n<h4>1.2.2 (2011 01 24)<\/h4>\n\n<ul>\n<li>BUG : Fixed purge when comments are approved\/trashed\/etc<\/li>\n<li>EDIT : Log file beautified (more readable)<\/li>\n<\/ul>\n\n<h4>1.2.1 (2011 01 19)<\/h4>\n\n<ul>\n<li>EDIT : Set default options when a new blog is installed<\/li>\n<\/ul>\n\n<h4>1.2 (2010 12 28)<\/h4>\n\n<ul>\n<li>NEW : You can now purge custom post types and tag archives<\/li>\n<li>NEW : When you purge a post also all related custom taxonomies are purged (if enabled in the options)<\/li>\n<li>NEW : Add constant in Overview \/ Debug<\/li>\n<li>NEW : Versioning manager<\/li>\n<li>EDIT : All other plugin class\/functions moved in \/integration folder<\/li>\n<li>EDIT : Network activation only (if multisite)<\/li>\n<li>EDIT : start_plugin() is now hooked with 'init' (priority 15)<\/li>\n<li>EDIT : Purge by options now get URL via wp functions and not by urls saved in options<\/li>\n<li>BUG : Purge comment via admin panel fixed<\/li>\n<li>BUG : Fixed NGG purge functions<\/li>\n<li>BUG : Fixed incorrect image URL retrieving in purgeOnMediaEdit() (thx Jean-Paul Horn)<\/li>\n<li>BUG : Fixed few small bugs and typos<\/li>\n<\/ul>\n\n<h4>1.1.1 (2010 12 15)<\/h4>\n\n<ul>\n<li>BUG : Fixed options for single site installation (thx Jean-Paul Horn)<\/li>\n<\/ul>\n\n<h4>1.1 (2010 11 10)<\/h4>\n\n<ul>\n<li>BUG : Fixed options to manage different blogs data in a multisite installation<\/li>\n<li>NEW : You can now purge personal URLs<\/li>\n<li>NEW : Maximum size of log file is controlled by a scheduled event every day<\/li>\n<li>NEW : Added a script to purge in case of future post and force a remote get. This script must be included in an external cron.<\/li>\n<li>NEW : Added functionality to purge a thumb when it's edited in Manage Gallery of Nextgen Gallery plugin. (You need to add 'do_action('ngg_ajax_UpdateThumb', $picture-&gt;thumbURL);' in createNewThumb function in nextgen-gallery\/admin\/ajax.php after this line 'if ( $thumb-&gt;save($picture-&gt;thumbPath, 100)) {', about line 128) <\/li>\n<li>BUG : Fixed few small bugs and typos<\/li>\n<\/ul>\n\n<h4>1.0 (2010 10 14)<\/h4>\n\n<ul>\n<li>Switching to first major release after 10 days of testing on a production environment.<\/li>\n<\/ul>\n\n<h4>0.3 (2010 10 04)<\/h4>\n\n<ul>\n<li>BUG : Fixed few small bugs and typos<\/li>\n<li>NEW : When you purge a post also all related media are purged (if enabled in the options)<\/li>\n<li>NEW : You can now truncate the log<\/li>\n<li>Updated documentation<\/li>\n<\/ul>\n\n<h4>0.2 (2010 10 01)<\/h4>\n\n<ul>\n<li>BUG : Fixed few small bugs and typos<\/li>\n<\/ul>","raw_excerpt":"Easily purge Nginx cache. Each time a post is modified clear the cached version of the page and of all the related page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/10732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=10732"}],"author":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hpatoio"}],"wp:attachment":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=10732"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=10732"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=10732"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=10732"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=10732"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=10732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}