From 83c6944fed277acaa81494eaf66f36fa02b57cff Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Tue, 18 Apr 2017 11:48:40 +0200 Subject: [PATCH] [auto] plugin: wp-super-cache 1.4.9 --- .../plugins/wp-super-cache/Changelog.txt | 151 ++++ .../plugins/wp-super-cache/ossdl-cdn.php | 4 +- .../wp-super-cache/plugins/jetpack.php | 2 +- .../wp-super-cache/plugins/multisite.php | 2 +- wp-content/plugins/wp-super-cache/readme.txt | 113 +-- .../plugins/wp-super-cache/wp-cache-base.php | 2 +- .../wp-super-cache/wp-cache-phase1.php | 10 +- .../wp-super-cache/wp-cache-phase2.php | 106 +-- .../plugins/wp-super-cache/wp-cache.php | 50 +- .../plugins/wp-super-cache/wp-super-cache.pot | 717 +++++++++--------- 10 files changed, 636 insertions(+), 521 deletions(-) diff --git a/wp-content/plugins/wp-super-cache/Changelog.txt b/wp-content/plugins/wp-super-cache/Changelog.txt index 3a59ee0b8..4f25e56d5 100644 --- a/wp-content/plugins/wp-super-cache/Changelog.txt +++ b/wp-content/plugins/wp-super-cache/Changelog.txt @@ -1,3 +1,154 @@ +2017-02-03 17:17 donncha + + * readme.txt, wp-cache.php: Bump version number to 1.4.9 and update + changelog + +2017-02-03 17:11 donncha + + * wp-cache-phase1.php, wp-cache-phase2.php, wp-cache.php: * Github + merge: + * Make sure $cache_path has a trailing slash + (https://github.com/Automattic/wp-super-cache/pull/77) + * Remove flush() + (https://github.com/Automattic/wp-super-cache/pull/127) but also + check if headers are empty and flush and get headers again. + (https://github.com/Automattic/wp-super-cache/pull/179) + * Add fix for customizer + (https://github.com/Automattic/wp-super-cache/pull/161) and don't + cache PUT AND DELETE requests + (https://github.com/Automattic/wp-super-cache/pull/178) + * Check for superglobals before using them. + (https://github.com/Automattic/wp-super-cache/pull/131) + +2017-02-03 16:54 donncha + + * plugins/multisite.php, wp-cache-base.php, wp-cache.php: Github + merge: Need to check more than WP_ALLOW_MULTISITE to detect + multisite installs. + https://github.com/Automattic/wp-super-cache/issues/97 + +2017-02-03 15:07 donncha + + * wp-cache-phase1.php: Github merge: + https://github.com/Automattic/wp-super-cache/pull/161 and also + don't cache PUT and DELETE requests (caught earlier than before) + +2017-02-03 14:45 donncha + + * plugins/jetpack.php: Remove extra ">", props @dd32 + https://github.com/Automattic/wp-super-cache/pull/168 + +2017-02-03 14:37 donncha + + * wp-super-cache.pot: Updated translation file + +2017-02-03 14:33 donncha + + * wp-cache.php: github merge: some of the changes that were + supposed to be checked in the previous merge didn't make it. + +2017-02-03 10:18 donncha + + * readme.txt: * Bump the tested version. + * Update the changelog + +2017-02-03 10:13 donncha + + * Changelog.txt: Updated changelog + +2017-02-02 18:14 donncha + + * readme.txt: Updated readme.txt changelog and docs + +2017-02-02 18:08 donncha + + * ossdl-cdn.php, readme.txt, wp-cache-phase2.php, wp-cache.php: + Sync with GITHUB: + * Don't delete so many files on blogs with static homepages. + https://github.com/Automattic/wp-super-cache/pull/175 + * Discourage use of file locking because semaphores cause + problems and it's not needed. + https://github.com/Automattic/wp-super-cache/pull/174 + * Reorganise the settings page in small ways + https://github.com/Automattic/wp-super-cache/pull/173 + * Fixed XSS in settings page. Props @jaypatel + https://github.com/Automattic/wp-super-cache/pull/172 + +2017-01-11 16:58 kraftbj + + * readme.txt, wp-cache-phase2.php: Github #138: Do not cache + PUT/DELETE requests + +2016-12-09 15:38 kraftbj + + * wp-cache-phase2.php: Check that header parts exist to avoid + `Undefined Index` notices + +2016-12-09 15:37 kraftbj + + * wp-cache-phase2.php: Update to Git master + +2016-12-09 10:25 donncha + + * readme.txt: Bump the "tested up to" value + +2016-08-01 20:39 kraftbj + + * readme.txt: Bump tested version to 4.6 + +2016-05-09 14:56 kraftbj + + * readme.txt: Bump tested version + +2016-03-07 15:24 kraftbj + + * readme.txt: Update readme for previous commit + +2016-03-07 15:20 kraftbj + + * wp-cache-phase2.php: Catch up SVN to GH + +2016-03-07 13:46 donncha + + * readme.txt, wp-cache.php: Bumped version to 1.4.8 and updated + changelog + +2016-03-07 13:39 donncha + + * wp-super-cache.pot: Updated translation pot file + +2016-03-07 12:37 donncha + + * wp-cache.php: Remove this link as Google is reporting it as + malware. It's still available at + https://web.archive.org/web/20150914095007/http://bytes.com/topic/php/answers/3917-seconds-converted-hh-mm-ss. + Ref: https://github.com/Automattic/wp-super-cache/issues/106 + +2015-12-16 18:14 kraftbj + + * readme.txt, wp-cache.php: Update readme for 1.4.7 + +2015-12-16 16:59 kraftbj + + * wp-cache.php: Fix settings page layout breakage in 4.4. + +2015-12-02 15:50 kraftbj + + * ossdl-cdn.php, wp-cache.php: Corrects typos. See + https://github.com/Automattic/wp-super-cache/issues/81 + + props https://github.com/christophherr + +2015-10-21 19:54 kraftbj + + * wp-cache-phase1.php: Remove variable no longer defined after + previous update. + +2015-10-09 18:06 donncha + + * Changelog.txt, readme.txt, wp-cache.php: Bump version to 1.4.6 + and update changelog + 2015-10-08 17:14 donncha * wp-cache.php: Don't check if .htaccess already created as the diff --git a/wp-content/plugins/wp-super-cache/ossdl-cdn.php b/wp-content/plugins/wp-super-cache/ossdl-cdn.php index 60e7c15b4..20934b409 100644 --- a/wp-content/plugins/wp-super-cache/ossdl-cdn.php +++ b/wp-content/plugins/wp-super-cache/ossdl-cdn.php @@ -132,6 +132,8 @@ function scossdl_off_options() { update_option('ossdl_off_include_dirs', $_POST['ossdl_off_include_dirs'] == '' ? 'wp-content,wp-includes' : $_POST['ossdl_off_include_dirs']); update_option('ossdl_off_exclude', $_POST['ossdl_off_exclude']); update_option('ossdl_cname', $_POST['ossdl_cname']); + if ( !isset( $_POST[ 'ossdl_https' ] ) ) + $_POST[ 'ossdl_https' ] = 0; update_option('ossdl_https', (int)$_POST['ossdl_https']); if ( isset( $_POST[ 'ossdlcdn' ] ) ) { $ossdlcdn = 1; @@ -163,7 +165,7 @@ function scossdl_off_options() { <tr valign="top"> <th scope="row"><label for="ossdl_off_cdn_url"><?php _e( 'Off-site URL', 'wp-super-cache' ); ?></label></th> <td> - <input type="text" name="ossdl_off_cdn_url" value="<?php echo(get_option('ossdl_off_cdn_url')); ?>" size="64" class="regular-text code" /><br /> + <input type="text" name="ossdl_off_cdn_url" value="<?php echo esc_url( get_option( 'ossdl_off_cdn_url' ) ); ?>" size="64" class="regular-text code" /><br /> <span class="description"><?php printf( __( 'The new URL to be used in place of %1$s for rewriting. No trailing <code>/</code> please.<br />Example: <code>%2$s</code>.', 'wp-super-cache' ), get_option( 'siteurl' ), $example_cdn_uri ); ?></span> </td> </tr> diff --git a/wp-content/plugins/wp-super-cache/plugins/jetpack.php b/wp-content/plugins/wp-super-cache/plugins/jetpack.php index 353a4dd82..878acfffa 100644 --- a/wp-content/plugins/wp-super-cache/plugins/jetpack.php +++ b/wp-content/plugins/wp-super-cache/plugins/jetpack.php @@ -25,7 +25,7 @@ function wp_super_cache_jetpack_admin() { <h4><?php _e( 'Jetpack Mobile Theme', 'wp-super-cache' ); ?></h4> <?php if ( false == file_exists( dirname( WPCACHEHOME ) . '/jetpack/class.jetpack-user-agent.php' ) ) { - echo "<strong>" . sprintf( __( "Jetpack not found in %s. Install it and enable the mobile theme and this helper plugin to cache visits by mobile visitors." ), dirname( WPCACHEHOME ) ) . "</strong>>"; + echo "<strong>" . sprintf( __( "Jetpack not found in %s. Install it and enable the mobile theme and this helper plugin to cache visits by mobile visitors." ), dirname( WPCACHEHOME ) ) . "</strong>"; } else { ?> <form name="wp_manager" action="" method="post"> <label><input type="radio" name="cache_jetpack" value="1" <?php if( $cache_jetpack ) { echo 'checked="checked" '; } ?>/> <?php _e( 'Enabled', 'wp-super-cache' ); ?></label> diff --git a/wp-content/plugins/wp-super-cache/plugins/multisite.php b/wp-content/plugins/wp-super-cache/plugins/multisite.php index 3974d5189..9d7ef1f07 100644 --- a/wp-content/plugins/wp-super-cache/plugins/multisite.php +++ b/wp-content/plugins/wp-super-cache/plugins/multisite.php @@ -1,6 +1,6 @@ <?php -if ( defined( 'WP_ALLOW_MULTISITE' ) ) +if ( ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) add_cacheaction( 'add_cacheaction', 'wp_super_cache_multisite_init' ); function wp_super_cache_multisite_init() { diff --git a/wp-content/plugins/wp-super-cache/readme.txt b/wp-content/plugins/wp-super-cache/readme.txt index dbeca174f..9c9666dd4 100644 --- a/wp-content/plugins/wp-super-cache/readme.txt +++ b/wp-content/plugins/wp-super-cache/readme.txt @@ -1,8 +1,8 @@ === WP Super Cache === Contributors: donncha, automattic, kraftbj Tags: performance,caching,wp-cache,wp-super-cache,cache -Tested up to: 4.5.2 -Stable tag: 1.4.8 +Tested up to: 4.7.3 +Stable tag: 1.4.9 Requires at least: 3.0 A very fast caching engine for WordPress that produces static html files. @@ -58,11 +58,26 @@ The cache directory, usually wp-content/cache/ is only for temporary files. Do n == Upgrade Notice == -= 1.4.8 = -Removed malware URL in a code comment. += 1.4.9 = +Fixed XSS on the settings page, settings page updates, file locking fixes and PHP 7.1 fix, caching fixes on static homepage blogs and more. == Changelog == += 1.4.9 = +* Fixed bug when not running sem_remove after sem_release. See https://github.com/Automattic/wp-super-cache/issues/85 +* Fixed a PHP error impacting PHP 7.1. +* Fixed a bug where we cached PUT and DELETE requests. We're treating them like POST requests now. +* Delete supercache cache files, even when supercache is disabled, because mod_rewrite rules might still be active. +* Updated the settings page, moving things around. [#173](https://github.com/Automattic/wp-super-cache/pull/173) +* Make file locking less attractive on the settings page and fixed the WPSC_DISABLE_LOCKING constant so it really disables file locking even if the user has enabled it already. +* Added a WPSC_REMOVE_SEMAPHORE constant that must be defined if sem_remove() is to be used as it may cause problems. [#174](https://github.com/Automattic/wp-super-cache/pull/174) +* Added a "wpsc_delete_related_pages_on_edit" filter that on returning 0 will disable deletion of pages outside of page being edited. [#175](https://github.com/Automattic/wp-super-cache/pull/175) +* Fixed plugin deleting all cached pages when a site had a static homepage. [#175](https://github.com/Automattic/wp-super-cache/pull/175) +* Make sure $cache_path has a trailing slash [#177](https://github.com/Automattic/wp-super-cache/pull/77) +* Remove flush() [#127](https://github.com/Automattic/wp-super-cache/pull/127) but also check if headers are empty and flush and get headers again. [#179](https://github.com/Automattic/wp-super-cache/pull/179) +* Add fix for customizer [#161](https://github.com/Automattic/wp-super-cache/pull/161) and don't cache PUT AND DELETE requests [#178](https://github.com/Automattic/wp-super-cache/pull/178) +* Check for superglobals before using them. [#131](https://github.com/Automattic/wp-super-cache/pull/131) + = 1.4.8 = * Removed malware URL in a code comment. (harmless to operation of plugin but gets flagged by A/V software) * Updated translation file. @@ -187,7 +202,7 @@ Removed malware URL in a code comment. * Serve repeated static files from the same CDN hostname. * Updated translations. * Make supercache dir lowercase to avoid problems with unicode URLs. -* Add option to skip https loaded static content. +* Add option to skip https loaded static content. * Remove 5 second check on age of existing cache files. Should help with posts that get lots of comments and traffic. * Lots of bugs fixed. @@ -273,12 +288,11 @@ Removed malware URL in a code comment. * Fixed problem deleting cache file. * Don't delete cache files when moderated comments are deleted. - = 0.9.7 = * Fixed problem with blogs in folders. * Added cache file listing and delete links to admin page. * Added "Newest Cached Pages" listing in sidebox. -* Made admin page translatable. +* Made admin page translatable. * Added "How do I make certain parts of the page stay dynamic?" to FAQ. * Advanced: added "late init" feature so that plugin activates on "init". Set $wp_super_cache_late_init to true in config file to use. * Disable supercaching when GET parameters present instead of disabling all caching. Disable on POST (as normal) and preview. @@ -299,7 +313,7 @@ Removed malware URL in a code comment. * Add uninstall.php uninstall script. * Updated cache/.htaccess rules (option to upgrade that) * Added FAQ about category and static homepage problem. -* Add wp_cache_user_agent_is_rejected() back to wp-cache-phase2.php +* Add wp_cache_user_agent_is_rejected() back to wp-cache-phase2.php * Show message for logged in users when caching disable for them. * Check filemtime on correct supercache file @@ -320,67 +334,7 @@ Removed malware URL in a code comment. 6. Fixed problems with posts and comments not refreshing. == Installation == -1. You should have the Apache mod mime and mod rewrite modules installed and WordPress custom permalinks (Settings->Permalinks) enabled. PHP safe mode should be disabled. If any of those are missing or off you can still use PHP or legacy caching. -2. If you have WP-Cache installed already, please disable it. Edit wp-config.php and make sure the WP_CACHE and WPCACHEHOME defines are deleted, and remove the files wp-content/wp-cache-config.php and wp-content/advanced-cache.php. These will be recreated when you install this plugin. -3. Upload this directory to your plugins directory. It will create a 'wp-content/plugins/wp-super-cache/' directory. -4. If you are using WordPress MU or WordPress Multisite you can install the plugin in the ordinary plugins folder and activate it "network wide". -5. WordPress users should go to their Plugins page and activate "WP Super Cache". -6. Now go to Settings->WP Super Cache and enable caching. If you see an error message or a blank screen see the "FAQ" section later in this readme for instructions. -7. If you choose "Mod Rewrite caching", mod_rewrite rules will be inserted into your .htaccess file. Look in your web root directory for this file. It should look similar to this: - - `-----------------.htaccess-----------------` - `RewriteEngine On` - `RewriteBase /` - - `RewriteCond %{REQUEST_METHOD} !=POST` - `RewriteCond %{QUERY_STRING} !.*=.*` - `RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$` - `RewriteCond %{HTTP:Accept-Encoding} gzip` - `RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).*` - `RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f` - `RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]` - - `RewriteCond %{REQUEST_METHOD} !=POST` - `RewriteCond %{QUERY_STRING} !.*=.*` - `RewriteCond %{QUERY_STRING} !.*attachment_id=.*` - `RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$` - `RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).*` - `RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f` - `RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]` - - `RewriteCond %{REQUEST_FILENAME} !-f` - `RewriteCond %{REQUEST_FILENAME} !-d` - `RewriteRule . /index.php [L]` - `-----------------.htaccess-----------------` -8. After you have enabled the plugin, look for the file "wp-content/cache/.htaccess". If it's not there you must create it. It should read: - - `# BEGIN supercache` - `<IfModule mod_mime.c>` - ` <FilesMatch "\.html\.gz$">` - ` ForceType text/html` - ` FileETag None` - ` </FilesMatch>` - ` AddEncoding gzip .gz` - ` AddType text/html .gz` - `</IfModule>` - `<IfModule mod_deflate.c>` - ` SetEnvIfNoCase Request_URI \.gz$ no-gzip` - `</IfModule>` - `<IfModule mod_headers.c>` - ` Header set Cache-Control 'max-age=3, must-revalidate'` - `</IfModule>` - `<IfModule mod_expires.c>` - ` ExpiresActive On` - ` ExpiresByType text/html A3` - `</IfModule>` - `` - `# END supercache` -9. Apache must be configured to allow the modules above. If you receive a "500 internal error" when serving requests to anonymous users you need to dig into your Apache configuration. This configuration in my virtual host works for me: - - `<Directory /home/www/>` - `AllowOverride All` - `</Directory>` -10. wp-content/advanced-cache.php loads the caching engine. This file is generated by the plugin. It uses the constant WPCACHEHOME to load the caching engine. +Install like any other plugin, directly from your plugins page but make sure you have custom permalinks enabled. Go to the plugin settings page at Settings->WP Super Cache and enable caching. == How to uninstall WP Super Cache == @@ -406,7 +360,9 @@ To manually uninstall: = How do I know my blog is being cached? = -Enable debugging in the plugin settings page and load the log file in a new browser tab. Then view your blog while logged in and logged out. You should see activity in the log. View the source of any page on your site. When a page is first created, you'll see the text "Dynamic page generated in XXXX seconds." and "Cached page generated by WP-Super-Cache on YYYY-MM-DD HH:MM:SS" at the end of the source code. On reload, a cached page will show the same timestamp so wait a few seconds before checking. +Go to Settings->WP Super Cache and look for the "Cache Tester" form on the easy settings page. Click "Test Cache" and the plugin will request the front page of the site twice, comparing a timestamp on each to make sure they match. + +If you want to do it manually, enable debugging in the plugin settings page and load the log file in a new browser tab. Then view your blog while logged in and logged out. You should see activity in the log. View the source of any page on your site. When a page is first created, you'll see the text "Dynamic page generated in XXXX seconds." and "Cached page generated by WP-Super-Cache on YYYY-MM-DD HH:MM:SS" at the end of the source code. On reload, a cached page will show the same timestamp so wait a few seconds before checking. In legacy caching mode, if you have compression enabled, the text "Compression = gzip" will be added. If compression is disabled and the page is served as a static html file, the text "super cache" will be added. The only other way to check if your cached file was served by PHP script or from the static cache is by looking at the HTTP headers. PHP cached pages will have the header "WP-Super-Cache: Served supercache file from PHP". Legacy cached files will have the header, "WP-Super-Cache: Served legacy cache file". I used the <a href="https://addons.mozilla.org/en-US/firefox/addon/3829">Live HTTP Headers</a> extension for Firefox to examine the headers. You should also check your cache directory in wp-content/cache/supercache/hostname/ for static cache files. If the plugin rules are missing from your .htaccess file, the plugin will attempt to serve the super cached page if it's found. The header "WP-Super-Cache: Served supercache file from PHP" if this happens. @@ -415,13 +371,9 @@ If the plugin rules are missing from your .htaccess file, the plugin will attemp WP-Cache files are stored in wp-content/cache/ (or on MU sites in a blogs sub directory) and are named wp-cache-XXXXXXXXXXXXXXXXX.html. Associated meta files are stored in a meta sub directory. Those files contain information about the cached file. These files are generated by the "legacy caching" code in the plugin. Supercache files are stored in wp-content/cache/supercache/HOSTNAME/ where HOSTNAME is your domain name. The files are stored in directories matching your site's permalink structure. -= Why is WP-Super-Cache better than WP-Cache? = - -This plugin is based on the excellent WP-Cache plugin. Besides the caching WP-Cache did this plugin creates copies of every page that is accessed on a blog in a form that is quickly served by the web server. It's almost as quick as if the you had saved a html page in your browser and uploaded it to replace your homepage. - = Will comments and other dynamic parts of my blog update immediately? = -Comments will show as soon as they are moderated, depending on the comment policy of the blog owner. Other dynamic elements on a page may not update unless they are written in Javascript, Flash, Java or another client side browser language. The plugin really produces static html pages. No PHP is executed when those pages are served. "Popularity Contest" is one such plugin that will not work. +Comments will show as soon as they are moderated, depending on the comment policy of the blog owner. Other dynamic elements on a page may not update unless they are written in Javascript, Flash, Java or another client side browser language. The plugin really produces static html pages. No PHP is executed when those pages are served. "Popularity Contest" is one such plugin that will not work. = Will the Super Cache compression slow down my server? = @@ -559,6 +511,7 @@ If that doesn't work, add this line to your wp-config.php: `AddDefaultCharset CHARSET` 27. Use [Cron View](http://wordpress.org/plugins/cron-view/) to help diagnose garbage collection and preload problems. Use the plugin to make sure jobs are scheduled and for what time. Look for the wp_cache_gc and wp_cache_full_preload_hook jobs. 18. The error message, "WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory." appears at the end of every page. You can delete wp-content/advanced-cache.php and reload the plugin settings page or edit wp-config.php and look for WPCACHEHOME and make sure it points at the wp-super-cache folder. This will normally be wp-content/plugins/wp-super-cache/ but you'll likely need the full path to that file (so it's easier to let the settings page fix it). If it is not correct the caching engine will not load. +19. If your server is running into trouble because of the number of semaphores used by the plugin it's because your users are using file locking which is not recommended (but is needed by a small number of users). You can globally disable file locking by defining the constant WPSC_DISABLE_LOCKING, or defining the constant WPSC_REMOVE_SEMAPHORE so that sem_remove() is called after every page is cached but that seems to cause problems for other processes requesting the same semaphore. Best to disable it. == CDN == @@ -578,8 +531,8 @@ Three hooks are available: 2. 'add_cacheaction' - runs in phase2. Allows a plugin to add WordPress hooks. 3. 'cache_admin_page' - runs in the admin page. Use it to modify that page, perhaps by adding new configuration options. -There is one regular WordPress filter too. Use the "do_createsupercache" filter -to customize the checks made before caching. The filter accepts one parameter. +There is one regular WordPress filter too. Use the "do_createsupercache" filter +to customize the checks made before caching. The filter accepts one parameter. The output of WP-Cache's wp_cache_get_cookies_values() function. See plugins/searchengine.php as an example I use for my [No Adverts for Friends](http://z9.io/no-adverts-for-friends/) plugin. @@ -603,11 +556,11 @@ Translators who did a great job converting the text of the plugin to their nativ * Tai (Japanese) * [Vitaly](http://pressword.com.ua/wordpress/) (Ukranian) * [Pseric](http://pseric.com/) and [Priv](http://priv.tw/blog) (Traditional Chinese) -* [Ma�tre M�](http://maitremo.fr/) (French) +* [Ma�tre M�](http://maitremo.fr/) (French) * [Mathias Roth](http://trade-service.eu/) (German) -* Bar�� �nver (Turkish) +* Bar�� �nver (Turkish) * [Elvis Fweb](http://wp.turkenichev.ru/) (Russian) -* Fredrik Fors�ll (Swedish) +* Fredrik Fors�ll (Swedish) * [Alyona Lompar](http://wwww.webhostinggeeks.com/) (Ukranian) * [Nata Strazda](http://www.webhostingrating.com/) (Lithuanian) * [Alexander Alexandrov](http://www.designcontest.com/) (Belarusian) diff --git a/wp-content/plugins/wp-super-cache/wp-cache-base.php b/wp-content/plugins/wp-super-cache/wp-cache-base.php index fcc6940f8..f08240243 100644 --- a/wp-content/plugins/wp-super-cache/wp-cache-base.php +++ b/wp-content/plugins/wp-super-cache/wp-cache-base.php @@ -5,7 +5,7 @@ $WPSC_HTTP_HOST = htmlentities( $_SERVER[ 'HTTP_HOST' ] ); // We want to be able to identify each blog in a WordPress MU install $blogcacheid = ''; -if ( defined( 'VHOST' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) { +if ( ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) { $blogcacheid = 'blog'; // main blog if( defined( 'SUBDOMAIN_INSTALL' ) && constant( 'SUBDOMAIN_INSTALL' ) == true ) { $blogcacheid = $WPSC_HTTP_HOST; diff --git a/wp-content/plugins/wp-super-cache/wp-cache-phase1.php b/wp-content/plugins/wp-super-cache/wp-cache-phase1.php index ed529b13a..6fd1ae3f9 100644 --- a/wp-content/plugins/wp-super-cache/wp-cache-phase1.php +++ b/wp-content/plugins/wp-super-cache/wp-cache-phase1.php @@ -47,8 +47,10 @@ if ( isset( $wp_cache_make_known_anon ) && $wp_cache_make_known_anon ) do_cacheaction( 'cache_init' ); -if (!$cache_enabled || $_SERVER["REQUEST_METHOD"] == 'POST') + +if ( ! $cache_enabled || ( isset( $_SERVER["REQUEST_METHOD"] ) && in_array( $_SERVER["REQUEST_METHOD"], array( 'POST', 'PUT', 'DELETE' ) ) ) || isset( $_GET['customize_changeset_uuid'] ) ) { return true; +} $file_expired = false; $cache_filename = ''; @@ -99,9 +101,11 @@ $wp_start_time = microtime(); function get_wp_cache_key( $url = false ) { global $wp_cache_request_uri, $wp_cache_gzip_encoding, $WPSC_HTTP_HOST; - if ( !$url ) + if ( ! $url ) { $url = $wp_cache_request_uri; - return do_cacheaction( 'wp_cache_key', $WPSC_HTTP_HOST . intval( $_SERVER[ 'SERVER_PORT' ] ) . preg_replace('/#.*$/', '', str_replace( '/index.php', '/', $url ) ) . $wp_cache_gzip_encoding . wp_cache_get_cookies_values() ); + } + $server_port = isset( $_SERVER[ 'SERVER_PORT' ] ) ? intval( $_SERVER[ 'SERVER_PORT' ] ) : 0; + return do_cacheaction( 'wp_cache_key', $WPSC_HTTP_HOST . $server_port . preg_replace('/#.*$/', '', str_replace( '/index.php', '/', $url ) ) . $wp_cache_gzip_encoding . wp_cache_get_cookies_values() ); } function wp_super_cache_init() { diff --git a/wp-content/plugins/wp-super-cache/wp-cache-phase2.php b/wp-content/plugins/wp-super-cache/wp-cache-phase2.php index 1a33fb59b..774751dbe 100644 --- a/wp-content/plugins/wp-super-cache/wp-cache-phase2.php +++ b/wp-content/plugins/wp-super-cache/wp-cache-phase2.php @@ -121,12 +121,18 @@ if ( !function_exists( 'wp_cache_user_agent_is_rejected' ) ) { function wp_cache_get_response_headers() { if(function_exists('apache_response_headers')) { - flush(); $headers = apache_response_headers(); + if ( empty( $headers ) ) { + flush(); + $headers = apache_response_headers(); + } } else if(function_exists('headers_list')) { $headers = array(); foreach(headers_list() as $hdr) { - list($header_name, $header_value) = explode(': ', $hdr, 2); + $header_parts = explode( ':', $hdr, 2 ); + $header_name = isset( $header_parts[0] ) ? trim( $header_parts[0] ) : ''; + $header_value = isset( $header_parts[1] ) ? trim( $header_parts[1] ) : ''; + $headers[$header_name] = $header_value; } } else @@ -155,7 +161,7 @@ function wp_cache_is_rejected($uri) { function wp_cache_mutex_init() { global $mutex, $wp_cache_mutex_disabled, $use_flock, $blog_cache_dir, $mutex_filename, $sem_id; - if( isset( $wp_cache_mutex_disabled) && $wp_cache_mutex_disabled ) + if ( defined( 'WPSC_DISABLE_LOCKING' ) || ( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) ) return true; if( !is_bool( $use_flock ) ) { @@ -172,14 +178,14 @@ function wp_cache_mutex_init() { $mutex = @fopen( $blog_cache_dir . $mutex_filename, 'w' ); } else { wp_cache_debug( "Created mutex lock on semaphore: {$sem_id}", 5 ); - $mutex = @sem_get( $sem_id, 1, 0644 | IPC_CREAT, 1 ); + $mutex = @sem_get( $sem_id, 1, 0666, 1 ); } } function wp_cache_writers_entry() { global $mutex, $wp_cache_mutex_disabled, $use_flock; - if( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) + if ( defined( 'WPSC_DISABLE_LOCKING' ) || ( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) ) return true; if( !$mutex ) { @@ -192,7 +198,7 @@ function wp_cache_writers_entry() { flock($mutex, LOCK_EX); } else { wp_cache_debug( "grabbing lock using sem_acquire()", 5 ); - sem_acquire($mutex); + @sem_acquire($mutex); } return true; @@ -201,7 +207,7 @@ function wp_cache_writers_entry() { function wp_cache_writers_exit() { global $mutex, $wp_cache_mutex_disabled, $use_flock; - if( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) + if ( defined( 'WPSC_DISABLE_LOCKING' ) || ( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) ) return true; if( !$mutex ) { @@ -211,10 +217,12 @@ function wp_cache_writers_exit() { if ( $use_flock ) { wp_cache_debug( "releasing lock using flock()", 5 ); - flock($mutex, LOCK_UN); + flock( $mutex, LOCK_UN ); } else { - wp_cache_debug( "releasing lock using sem_release()", 5 ); - sem_release($mutex); + wp_cache_debug( "releasing lock using sem_release() and sem_remove()", 5 ); + @sem_release( $mutex ); + if ( defined( "WPSC_REMOVE_SEMAPHORE" ) ) + @sem_remove( $mutex ); } } @@ -259,6 +267,12 @@ function wp_cache_ob_callback( $buffer ) { } elseif ( $_SERVER["REQUEST_METHOD"] == 'POST' || !empty( $_POST ) || get_option( 'gzipcompression' ) ) { wp_cache_debug( 'Not caching POST request.', 5 ); $cache_this_page = false; + } elseif ( $_SERVER["REQUEST_METHOD"] == 'PUT' ) { + wp_cache_debug( 'Not caching PUT request.', 5 ); + $cache_this_page = false; + } elseif ( $_SERVER["REQUEST_METHOD"] == 'DELETE' ) { + wp_cache_debug( 'Not caching DELETE request.', 5 ); + $cache_this_page = false; } elseif ( $wp_cache_object_cache && !empty( $_GET ) ) { wp_cache_debug( 'Not caching GET request while object cache storage enabled.', 5 ); $cache_this_page = false; @@ -388,7 +402,7 @@ function wp_cache_get_ob(&$buffer) { $wp_cache_mfunc_enabled = 0; $new_cache = true; - $wp_cache_meta = ''; + $wp_cache_meta = array(); /* Mode paranoic, check for closing tags * we avoid caching incomplete files */ @@ -1122,21 +1136,19 @@ function wp_cache_post_id_gc( $siteurl, $post_id, $all = 'all' ) { $permalink = trailingslashit( str_replace( get_option( 'home' ), '', get_permalink( $post_id ) ) ); $dir = get_current_url_supercache_dir( $post_id ); wp_cache_debug( "wp_cache_post_id_gc post_id: $post_id " . get_permalink( $post_id ) . " clearing cache in $dir.", 4 ); - if ( $all == 'all' ) { + if ( $all ) { prune_super_cache( $dir, true, true ); do_action( 'gc_cache', 'prune', $permalink ); @rmdir( $dir ); + wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$supercache_home}page/." ); + $supercache_home = get_supercache_dir(); + prune_super_cache( $supercache_home . 'page/', true ); + do_action( 'gc_cache', 'prune', 'page/' ); } else { wp_cache_debug( "wp_cache_post_id_gc clearing cached index files in $dir.", 4 ); prune_super_cache( $dir, true, true ); do_action( 'gc_cache', 'prune', $permalink ); } - wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$dir}/page/.", 4 ); - prune_super_cache( $dir . '/page/', true ); - $supercache_home = get_supercache_dir(); - wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$supercache_home}/page/.", 4 ); - prune_super_cache( $supercache_home . '/page/', true ); - do_action( 'gc_cache', 'prune', '/page/' ); } function wp_cache_post_change( $post_id ) { @@ -1171,39 +1183,43 @@ function wp_cache_post_change( $post_id ) { $all = true; } + $all_backup = $all; + $all = apply_filters( 'wpsc_delete_related_pages_on_edit', $all ); // return 0 to disable deleting homepage and other pages. + if ( $all != $all_backup ) + wp_cache_debug( 'wp_cache_post_change: $all changed by wpsc_delete_related_pages_on_edit filter: ' . intval( $all ) ); + if ( $wp_cache_object_cache ) reset_oc_version(); $permalink = trailingslashit( str_replace( get_option( 'siteurl' ), '', get_permalink( $post_id ) ) ); - if( $super_cache_enabled ) { - $dir = get_supercache_dir(); - $siteurl = trailingslashit( strtolower( preg_replace( '/:.*$/', '', str_replace( 'https://', '', str_replace( 'http://', '', get_option( 'home' ) ) ) ) ) ); - // make sure the front page has a rebuild file - wp_cache_post_id_gc( $siteurl, $post_id ); - if ( $all == true ) { - wp_cache_debug( "Post change: supercache enabled: deleting cache files in " . $cache_path . 'supercache/' . $siteurl, 4 ); - $files_to_check = get_all_supercache_filenames( $dir ); - foreach( $files_to_check as $cache_file ) { - wp_cache_debug( "Post change: deleting cache file: " . $dir . $cache_file, 4 ); - prune_super_cache( $dir . $cache_file, true, true ); - } - do_action( 'gc_cache', 'prune', 'homepage' ); - } else { - wp_cache_debug( "wp_cache_post_change: not deleting all pages.", 4 ); + + // Delete supercache files whenever a post change event occurs, even if supercache is currently disabled. + $dir = get_supercache_dir(); + $siteurl = trailingslashit( strtolower( preg_replace( '/:.*$/', '', str_replace( 'https://', '', str_replace( 'http://', '', get_option( 'home' ) ) ) ) ) ); + // make sure the front page has a rebuild file + wp_cache_post_id_gc( $siteurl, $post_id, $all ); + if ( $all == true ) { + wp_cache_debug( "Post change: supercache enabled: deleting cache files in " . $cache_path . 'supercache/' . $siteurl, 4 ); + $files_to_check = get_all_supercache_filenames( $dir ); + foreach( $files_to_check as $cache_file ) { + wp_cache_debug( "Post change: deleting cache file: " . $dir . $cache_file, 4 ); + prune_super_cache( $dir . $cache_file, true, true ); } - if( $all == true && get_option( 'show_on_front' ) == 'page' ) { - wp_cache_debug( "Post change: deleting page_on_front and page_for_posts pages.", 4 ); - wp_cache_debug( "Post change: page_on_front " . get_option( 'page_on_front' ), 4 ); - wp_cache_post_id_gc( $siteurl, get_option( 'page_on_front' ), 'single' ); - $permalink = trailingslashit( str_replace( get_option( 'home' ), '', get_permalink( get_option( 'page_for_posts' ) ) ) ); - $files_to_check = get_all_supercache_filenames( $dir . $permalink ); - foreach( $files_to_check as $cache_file ) { - prune_super_cache( $dir . $permalink . $cache_file, true, true ); - } - do_action( 'gc_cache', 'prune', $permalink ); - } else { - wp_cache_debug( "wp_cache_post_change: not deleting front static page.", 4 ); + do_action( 'gc_cache', 'prune', 'homepage' ); + } else { + wp_cache_debug( "wp_cache_post_change: not deleting all pages.", 4 ); + } + if( $all == true && get_option( 'show_on_front' ) == 'page' ) { + wp_cache_debug( "Post change: deleting page_on_front and page_for_posts pages.", 4 ); + wp_cache_debug( "Post change: page_on_front " . get_option( 'page_on_front' ), 4 ); + $permalink = trailingslashit( str_replace( get_option( 'home' ), '', get_permalink( get_option( 'page_for_posts' ) ) ) ); + $files_to_check = get_all_supercache_filenames( $dir . $permalink ); + foreach( $files_to_check as $cache_file ) { + prune_super_cache( $dir . $permalink . $cache_file, true, true ); } + do_action( 'gc_cache', 'prune', $permalink ); + } else { + wp_cache_debug( "wp_cache_post_change: not deleting front static page.", 4 ); } wp_cache_debug( "wp_cache_post_change: checking {$blog_cache_dir}meta/", 4 ); diff --git a/wp-content/plugins/wp-super-cache/wp-cache.php b/wp-content/plugins/wp-super-cache/wp-cache.php index 973cd7ed0..3fa89c9c9 100644 --- a/wp-content/plugins/wp-super-cache/wp-cache.php +++ b/wp-content/plugins/wp-super-cache/wp-cache.php @@ -3,7 +3,7 @@ Plugin Name: WP Super Cache Plugin URI: https://wordpress.org/plugins/wp-super-cache/ Description: Very fast caching plugin for WordPress. -Version: 1.4.8 +Version: 1.4.9 Author: Automattic Author URI: https://automattic.com/ License: GPL2+ @@ -494,12 +494,13 @@ function wp_cache_manager_updates() { } if( isset( $_POST[ 'action' ] ) && $_POST[ 'action' ] == 'scupdates' ) { - if( isset( $_POST[ 'wp_cache_location' ] ) && $_POST[ 'wp_cache_location' ] != '' ) { + if( isset( $_POST[ 'wp_cache_location' ] ) && $_POST[ 'wp_cache_location' ] != '' && + ( !isset( $cache_path ) || $_POST[ 'wp_cache_location' ] != $cache_path ) ) { $dir = realpath( trailingslashit( dirname( $_POST[ 'wp_cache_location' ] ) ) ); if ( $dir == false ) $dir = WP_CONTENT_DIR . '/cache/'; else - $dir = trailingslashit( $dir ) . wpsc_deep_replace( array( '..', '\\' ), basename( $_POST[ 'wp_cache_location' ] ) ); + $dir = trailingslashit( $dir ) . trailingslashit(wpsc_deep_replace( array( '..', '\\' ), basename( $_POST[ 'wp_cache_location' ] ) ) ); $new_cache_path = $dir; } else { $new_cache_path = WP_CONTENT_DIR . '/cache/'; @@ -567,19 +568,19 @@ function wp_cache_manager_updates() { } wp_cache_replace_line('^ *\$wp_supercache_cache_list', "\$wp_supercache_cache_list = " . $wp_supercache_cache_list . ";", $wp_cache_config_file); - if ( isset( $_POST[ 'wp_cache_status' ] ) ) { + if ( isset( $_POST[ 'wp_cache_status' ] ) && 'all' == $_POST[ 'wp_cache_status' ] ) { if ( $_POST[ 'wp_cache_status' ] == 'all' ) wp_cache_enable(); if ( isset( $_POST[ 'super_cache_enabled' ] ) ) { if ( $_POST[ 'super_cache_enabled' ] == 0 ) { - wp_cache_enable(); + wp_cache_enable(); // logged in cache wp_super_cache_disable(); } if( $_POST[ 'super_cache_enabled' ] == 1 ) { $wp_cache_mod_rewrite = 1; // we need this because supercached files can be served by PHP too. } else { - $wp_cache_mod_rewrite = 0; + $wp_cache_mod_rewrite = 0; // cache files served by PHP } wp_cache_replace_line('^ *\$wp_cache_mod_rewrite', '$wp_cache_mod_rewrite = ' . $wp_cache_mod_rewrite . ";", $wp_cache_config_file); } @@ -1003,7 +1004,8 @@ table.wpsc-settings-table { <td> <fieldset> <legend class="hidden">Caching</legend> - <label><input type='checkbox' name='wp_cache_status' value='all' <?php if ( $cache_enabled == true ) { echo 'checked=checked'; } ?>> <?php _e( 'Cache hits to this website for quick access.', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br /><br /> + <label><input type='radio' name='wp_cache_status' value='all' <?php if ( $cache_enabled == true ) { echo 'checked=checked'; } ?>> <?php _e( 'Caching On', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br /> + <label><input type='radio' name='wp_cache_status' value='0' <?php if ( $cache_enabled == false ) { echo 'checked=checked'; } ?>> <?php _e( 'Caching Off', 'wp-super-cache' ); ?></label><br /><br /> <label><input type='radio' name='super_cache_enabled' <?php if( $super_cache_enabled && $wp_cache_mod_rewrite == 1 ) echo "checked"; ?> value='1'> <?php _e( 'Use mod_rewrite to serve cache files.', 'wp-super-cache' ); ?></label><br /> <label><input type='radio' name='super_cache_enabled' <?php if( $wp_cache_mod_rewrite == 0 ) echo "checked"; ?> value='2'> <?php _e( 'Use PHP to serve cache files.', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br /> <label><input type='radio' name='super_cache_enabled' <?php if( $super_cache_enabled == false ) echo "checked"; ?> value='0'> <?php _e( 'Legacy page caching.', 'wp-super-cache' ); ?></label><br /> @@ -1025,6 +1027,10 @@ table.wpsc-settings-table { <em><?php _e( 'Compression is disabled by default because some hosts have problems with compressed files. Switching it on and off clears the cache.', 'wp-super-cache' ); ?></em><br /> <?php } } + ?> + <label><input type='checkbox' name='wp_cache_not_logged_in' <?php if ( $wp_cache_not_logged_in ) echo "checked"; ?> value='1'> <?php _e( 'Don’t cache pages for <acronym title="Logged in users and those that comment">known users</acronym>.', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br /> + <label><input type='checkbox' name='cache_rebuild_files' <?php if ( $cache_rebuild_files ) echo "checked"; ?> value='1'> <?php _e( 'Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated.', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br /> + <?php $disable_304 = true; if ( 0 == $wp_cache_mod_rewrite ) $disable_304 = false; @@ -1037,10 +1043,9 @@ table.wpsc-settings-table { } else { ?><em><?php _e( '304 support is disabled by default because some hosts have had problems with the headers used in the past.', 'wp-super-cache' ); ?></em><br /><?php } - ?><label><input type='checkbox' name='wp_cache_not_logged_in' <?php if( $wp_cache_not_logged_in ) echo "checked"; ?> value='1'> <?php _e( 'Don’t cache pages for <acronym title="Logged in users and those that comment">known users</acronym>.', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br /> + ?> <label><input type='checkbox' name='wp_cache_no_cache_for_get' <?php if( $wp_cache_no_cache_for_get ) echo "checked"; ?> value='1'> <?php _e( 'Don’t cache pages with GET parameters. (?x=y at the end of a url)', 'wp-super-cache' ); ?></label><br /> <label><input type='checkbox' name='wp_cache_make_known_anon' <?php if( $wp_cache_make_known_anon ) echo "checked"; ?> value='1'> <?php _e( 'Make known users anonymous so they’re served supercached static files.', 'wp-super-cache' ); ?></label><br /> - <label><input type='checkbox' name='cache_rebuild_files' <?php if( $cache_rebuild_files ) echo "checked"; ?> value='1'> <?php _e( 'Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated.', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br /> <label><input type='checkbox' name='wp_cache_hello_world' <?php if( $wp_cache_hello_world ) echo "checked"; ?> value='1'> <?php printf( __( 'Proudly tell the world your server is <a href="%s">Stephen Fry proof</a>! (places a message in your blog’s footer)', 'wp-super-cache' ), 'https://twitter.com/#!/HibbsLupusTrust/statuses/136429993059291136' ); ?></label><br /> </legend> </fieldset> @@ -1062,7 +1067,7 @@ table.wpsc-settings-table { <label><input type='checkbox' name='wp_cache_refresh_single_only' <?php if( $wp_cache_refresh_single_only ) echo "checked"; ?> value='1'> <?php _e( 'Only refresh current page when comments made.', 'wp-super-cache' ); ?></label><br /> <label><input type='checkbox' name='wp_supercache_cache_list' <?php if( $wp_supercache_cache_list ) echo "checked"; ?> value='1'> <?php _e( 'List the newest cached pages on this page.', 'wp-super-cache' ); ?></label><br /> <?php if( false == defined( 'WPSC_DISABLE_LOCKING' ) ) { ?> - <label><input type='checkbox' name='wp_cache_mutex_disabled' <?php if( !$wp_cache_mutex_disabled ) echo "checked"; ?> value='0'> <?php _e( 'Coarse file locking. You probably don’t need this but it may help if your server is underpowered. Warning! <em>May cause your server to lock up in very rare cases!</em>', 'wp-super-cache' ); ?></label><br /> + <label><input type='checkbox' name='wp_cache_mutex_disabled' <?php if( !$wp_cache_mutex_disabled ) echo "checked"; ?> value='0'> <?php _e( 'Coarse file locking. You do not need this as it will slow down your website.', 'wp-super-cache' ); ?></label><br /> <?php } ?> <label><input type='checkbox' name='wp_super_cache_late_init' <?php if( $wp_super_cache_late_init ) echo "checked"; ?> value='1'> <?php _e( 'Late init. Display cached files after WordPress has loaded. Most useful in legacy mode.', 'wp-super-cache' ); ?></label><br /> <?php if ( $_wp_using_ext_object_cache ) { @@ -1145,8 +1150,6 @@ table.wpsc-settings-table { <fieldset> <label><input type='radio' name='wp_cache_easy_on' value='1' <?php if ( $cache_enabled == true ) { echo 'checked=checked'; } ?>> <?php _e( 'Caching On', 'wp-super-cache' ); echo " <em>(" . __( "Recommended", "wp-super-cache" ) . ")</em>"; ?></label><br /> <label><input type='radio' name='wp_cache_easy_on' value='0' <?php if ( $cache_enabled == false ) { echo 'checked=checked'; } ?>> <?php _e( 'Caching Off', 'wp-super-cache' ); ?></label><br /> - <em><?php _e( 'Note: enables PHP caching, cache rebuild, and mobile support', 'wp-super-cache' ); ?></em><br /> - </legend> </fieldset> </td> </tr> @@ -1251,10 +1254,10 @@ table.wpsc-settings-table { wp_nonce_field('wp-cache'); echo "</form>\n"; - if ( ( defined( 'VHOST' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && wpsupercache_site_admin() ) { + if ( ( defined( 'VHOST' ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'SUNRISE' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && wpsupercache_site_admin() ) { echo '<form name="wp_cache_content_delete" action="#listfiles" method="post">'; echo '<input type="hidden" name="wp_delete_all_cache" />'; - echo '<div class="submit" style="float:left;margin-left:10px"><input id="deleteallpost" class="button-secondary" type="submit" ' . SUBMITDISABLED . 'value="' . __( 'Delete Cache On All Blogs', 'wp-super-cache' ) . '" />'; + echo '<div class="submit" style="float:left;margin-left:10px"><input id="deleteallpost" class="button-secondary" type="submit" ' . SUBMITDISABLED . 'value="' . __( 'Delete Cache On All Blogs', 'wp-super-cache' ) . '" /></div>'; wp_nonce_field('wp-cache'); echo "</form><br />\n"; } @@ -1263,7 +1266,6 @@ table.wpsc-settings-table { <p><?php _e( 'Caching is only one part of making a website faster. Here are some other plugins that will help:', 'wp-super-cache' ); ?></p> <li><?php printf( __( '<a href="%s">Yahoo! Yslow</a> is an extension for the Firefox add-on Firebug. It analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages. Also try the performance tools online at <a href="%s">GTMetrix</a>.', 'wp-super-cache' ), 'http://developer.yahoo.com/yslow/', 'http://gtmetrix.com/' ); ?></li> <li><?php printf( __( '<a href="%s">Use Google Libraries</a> allows you to load some commonly used Javascript libraries from Google webservers. Ironically, it may reduce your Yslow score.', 'wp-super-cache' ), 'http://wordpress.org/plugins/use-google-libraries/' ); ?></li> - <li><?php printf( __( '<strong>Advanced users only:</strong> <a href="%s">Speed up your site with Caching and cache-control</a> explains how to make your site more cacheable with .htaccess rules.', 'wp-super-cache' ), 'http://www.askapache.com/htaccess/speed-up-your-site-with-caching-and-cache-control.html' ); ?></li> <li><?php printf( __( '<strong>Advanced users only:</strong> Install an object cache. Choose from <a href="%s">Memcached</a>, <a href="%s">XCache</a>, <a href="%s">eAcccelerator</a> and others.', 'wp-super-cache' ), 'http://wordpress.org/plugins/memcached/', 'http://neosmart.net/dl.php?id=12', 'http://neosmart.net/dl.php?id=13' ); ?></li> <li><?php printf( __( '<a href="%s">Cron View</a> is a useful plugin to use when trying to debug garbage collection and preload problems.', 'wp-super-cache' ), 'http://wordpress.org/plugins/cron-view/' ); ?></li> </ol> @@ -1704,7 +1706,11 @@ function wp_cache_edit_max_time () { } elseif ( $valid_nonce ) { // clock wp_clear_scheduled_hook( 'wp_cache_gc' ); $cache_schedule_type = 'time'; - if ( !isset( $_POST[ 'cache_scheduled_time' ] ) || $_POST[ 'cache_scheduled_time' ] == '' ) + if ( !isset( $_POST[ 'cache_scheduled_time' ] ) || + $_POST[ 'cache_scheduled_time' ] == '' || + 5 != strlen( $_POST[ 'cache_scheduled_time' ] ) || + ":" != substr( $_POST[ 'cache_scheduled_time' ], 2, 1 ) + ) $_POST[ 'cache_scheduled_time' ] = '00:00'; $cache_scheduled_time = $_POST[ 'cache_scheduled_time' ]; $schedules = wp_get_schedules(); @@ -1753,12 +1759,12 @@ function wp_cache_edit_max_time () { echo '<input name="action" value="expirytime" type="hidden" />'; echo '<table class="form-table">'; echo '<tr><td><label for="wp_max_time"><strong>' . __( 'Cache Timeout', 'wp-super-cache' ) . '</strong></label></td>'; - echo "<td><input type='text' id='wp_max_time' size=6 name='wp_max_time' value='$cache_max_time' /> " . __( "seconds", 'wp-super-cache' ) . "</td></tr>\n"; + echo "<td><input type='text' id='wp_max_time' size=6 name='wp_max_time' value='" . esc_attr( $cache_max_time ) . "' /> " . __( "seconds", 'wp-super-cache' ) . "</td></tr>\n"; echo "<tr><td></td><td>" . __( 'How long should cached pages remain fresh? Set to 0 to disable garbage collection. A good starting point is 3600 seconds.', 'wp-super-cache' ) . "</td></tr>\n"; echo '<tr><td valign="top"><strong>' . __( 'Scheduler', 'wp-super-cache' ) . '</strong></td><td><table cellpadding=0 cellspacing=0><tr><td valign="top"><input type="radio" id="schedule_interval" name="cache_schedule_type" value="interval" ' . checked( 'interval', $cache_schedule_type, false ) . ' /></td><td valign="top"><label for="cache_interval_time">' . __( 'Timer:', 'wp-super-cache' ) . '</label></td>'; - echo "<td><input type='text' id='cache_interval_time' size=6 name='cache_time_interval' value='$cache_time_interval' /> " . __( "seconds", 'wp-super-cache' ) . '<br />' . __( 'Check for stale cached files every <em>interval</em> seconds.', 'wp-super-cache' ) . "</td></tr>"; + echo "<td><input type='text' id='cache_interval_time' size=6 name='cache_time_interval' value='" . esc_attr( $cache_time_interval ) . "' /> " . __( "seconds", 'wp-super-cache' ) . '<br />' . __( 'Check for stale cached files every <em>interval</em> seconds.', 'wp-super-cache' ) . "</td></tr>"; echo '<tr><td valign="top"><input type="radio" id="schedule_time" name="cache_schedule_type" value="time" ' . checked( 'time', $cache_schedule_type, false ) . ' /></td><td valign="top"><label for="schedule_time">' . __( 'Clock:', 'wp-super-cache' ) . '</label></td>'; - echo "<td><input type=\"text\" size=5 id='cache_scheduled_time' name='cache_scheduled_time' value=\"$cache_scheduled_time\" /> " . __( "HH:MM", 'wp-super-cache' ) . "<br />" . __( 'Check for stale cached files at this time <strong>(UTC)</strong> or starting at this time every <em>interval</em> below.', 'wp-super-cache' ) . "</td></tr>"; + echo "<td><input type=\"text\" size=5 id='cache_scheduled_time' name='cache_scheduled_time' value=\"" . esc_attr( $cache_scheduled_time ) . "\" /> " . __( "HH:MM", 'wp-super-cache' ) . "<br />" . __( 'Check for stale cached files at this time <strong>(UTC)</strong> or starting at this time every <em>interval</em> below.', 'wp-super-cache' ) . "</td></tr>"; $schedules = wp_get_schedules(); echo "<tr><td><br /></td><td><label for='cache_scheduled_select'>" . __( 'Interval:', 'wp-super-cache' ) . "</label></td><td><select id='cache_scheduled_select' name='cache_schedule_interval' size=1>"; foreach( $schedules as $desc => $details ) { @@ -2688,10 +2694,10 @@ function wp_cache_delete_buttons() { echo '<div class="submit" style="float:left;margin-left:10px"><input id="deletepost" class="button-secondary" type="submit" ' . SUBMITDISABLED . 'value="' . __( 'Delete Cache', 'wp-super-cache' ) . '" /></div>'; wp_nonce_field('wp-cache'); echo "</form>\n"; - if ( ( defined( 'VHOST' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && wpsupercache_site_admin() ) { + if ( ( defined( 'VHOST' ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'SUNRISE' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && wpsupercache_site_admin() ) { echo '<form name="wp_cache_content_delete" action="#listfiles" method="post">'; echo '<input type="hidden" name="wp_delete_all_cache" />'; - echo '<div class="submit" style="float:left;margin-left:10px"><input id="deleteallpost" class="button-secondary" type="submit" ' . SUBMITDISABLED . 'value="' . __( 'Delete Cache On All Blogs', 'wp-super-cache' ) . '" />'; + echo '<div class="submit" style="float:left;margin-left:10px"><input id="deleteallpost" class="button-secondary" type="submit" ' . SUBMITDISABLED . 'value="' . __( 'Delete Cache On All Blogs', 'wp-super-cache' ) . '" /></div>'; wp_nonce_field('wp-cache'); echo "</form>\n"; } @@ -2789,7 +2795,7 @@ function wp_cache_clean_legacy_files( $dir, $file_prefix ) { @unlink( $dir . 'meta/' . str_replace( '.html', '.meta', $file ) ); } else { $meta = json_decode( wp_cache_get_legacy_cache( $dir . 'meta/' . $file ), true ); - if ( ( defined( 'VHOST' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && $meta[ 'blog_id' ] != $wpdb->blogid ) + if ( ( defined( 'VHOST' ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'SUNRISE' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && $meta[ 'blog_id' ] != $wpdb->blogid ) continue; @unlink( $dir . $file); @unlink( $dir . 'meta/' . $file); diff --git a/wp-content/plugins/wp-super-cache/wp-super-cache.pot b/wp-content/plugins/wp-super-cache/wp-super-cache.pot index 0fccf5696..2aaf6a6da 100644 --- a/wp-content/plugins/wp-super-cache/wp-super-cache.pot +++ b/wp-content/plugins/wp-super-cache/wp-super-cache.pot @@ -1,18 +1,18 @@ -# Copyright (C) 2016 WP Super Cache +# Copyright (C) 2017 WP Super Cache # This file is distributed under the same license as the WP Super Cache package. msgid "" msgstr "" -"Project-Id-Version: WP Super Cache 1.4.7\n" +"Project-Id-Version: WP Super Cache 1.4.8\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-super-cache\n" -"POT-Creation-Date: 2016-03-07 13:27:41+00:00\n" +"POT-Creation-Date: 2017-02-03 14:34:28+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" -#: ossdl-cdn.php:151 +#: ossdl-cdn.php:153 msgid "" "Your website probably uses lots of static files. Image, Javascript and CSS " "files are usually static files that could just as easily be served from " @@ -24,57 +24,57 @@ msgid "" "+does+Origin+Pull+work%3F\" target=\"_blank\">origin pull</a>." msgstr "" -#: ossdl-cdn.php:152 +#: ossdl-cdn.php:154 msgid "" "<strong style=\"color: red\">WARNING:</strong> Test some static urls e.g., " "%s to ensure your CDN service is fully working before saving changes." msgstr "" -#: ossdl-cdn.php:153 +#: ossdl-cdn.php:155 msgid "You can define different CDN URLs for each site on a multsite network." msgstr "" -#: ossdl-cdn.php:161 +#: ossdl-cdn.php:163 msgid "Enable CDN Support" msgstr "" -#: ossdl-cdn.php:164 +#: ossdl-cdn.php:166 msgid "Off-site URL" msgstr "" -#: ossdl-cdn.php:167 +#: ossdl-cdn.php:169 msgid "" "The new URL to be used in place of %1$s for rewriting. No trailing <code>/</" "code> please.<br />Example: <code>%2$s</code>." msgstr "" -#: ossdl-cdn.php:171 +#: ossdl-cdn.php:173 msgid "Include directories" msgstr "" -#: ossdl-cdn.php:174 +#: ossdl-cdn.php:176 msgid "" "Directories to include in static file matching. Use a comma as the " "delimiter. Default is <code>wp-content, wp-includes</code>, which will be " "enforced if this field is left empty." msgstr "" -#: ossdl-cdn.php:178 +#: ossdl-cdn.php:180 msgid "Exclude if substring" msgstr "" -#: ossdl-cdn.php:181 +#: ossdl-cdn.php:183 msgid "" "Excludes something from being rewritten if one of the above strings is found " "in the match. Use a comma as the delimiter like this, <code>.php, .flv, .do</" "code>, and always include <code>.php</code> (default)." msgstr "" -#: ossdl-cdn.php:185 +#: ossdl-cdn.php:187 msgid "Additional CNAMES" msgstr "" -#: ossdl-cdn.php:188 +#: ossdl-cdn.php:190 msgid "" "These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will " "be used in place of %1$s for rewriting (in addition to the off-site URL " @@ -83,15 +83,15 @@ msgid "" "be configured on your CDN.<br />Example: %2$s" msgstr "" -#: ossdl-cdn.php:192 +#: ossdl-cdn.php:194 msgid "Skip https URLs to avoid \"mixed content\" errors" msgstr "" -#: ossdl-cdn.php:196 +#: ossdl-cdn.php:198 msgid "Save Changes" msgstr "" -#: ossdl-cdn.php:198 +#: ossdl-cdn.php:200 msgid "" "CDN functionality provided by <a href=\"http://wordpress.org/plugins/ossdl-" "cdn-off-linker/\">OSSDL CDN Off Linker</a> by <a href=\"http://mark.ossdl.de/" @@ -108,13 +108,13 @@ msgstr "" #: plugins/awaitingmoderation.php:34 plugins/badbehaviour.php:65 #: plugins/domain-mapping.php:75 plugins/jetpack.php:31 -#: plugins/searchengine.php:69 plugins/wptouch.php:22 wp-cache.php:1500 +#: plugins/searchengine.php:69 plugins/wptouch.php:22 wp-cache.php:1501 msgid "Enabled" msgstr "" #: plugins/awaitingmoderation.php:35 plugins/badbehaviour.php:66 #: plugins/domain-mapping.php:76 plugins/jetpack.php:32 -#: plugins/searchengine.php:70 plugins/wptouch.php:23 wp-cache.php:1500 +#: plugins/searchengine.php:70 plugins/wptouch.php:23 wp-cache.php:1501 msgid "Disabled" msgstr "" @@ -126,8 +126,8 @@ msgstr "" #: plugins/awaitingmoderation.php:40 plugins/badbehaviour.php:71 #: plugins/domain-mapping.php:81 plugins/jetpack.php:37 -#: plugins/searchengine.php:75 plugins/wptouch.php:28 wp-cache.php:1973 -#: wp-cache.php:1975 +#: plugins/searchengine.php:75 plugins/wptouch.php:28 wp-cache.php:1978 +#: wp-cache.php:1980 msgid "enabled" msgstr "" @@ -166,7 +166,7 @@ msgstr "" msgid "Bad Behavior support is now %s" msgstr "" -#: plugins/badbehaviour.php:83 wp-cache.php:1593 wp-cache.php:1598 +#: plugins/badbehaviour.php:83 wp-cache.php:1594 wp-cache.php:1599 msgid "Warning!" msgstr "" @@ -216,11 +216,11 @@ msgstr "" msgid "Cached" msgstr "" -#: plugins/multisite.php:31 wp-cache.php:1513 +#: plugins/multisite.php:31 wp-cache.php:1514 msgid "Enable" msgstr "" -#: plugins/multisite.php:33 plugins/searchengine.php:61 wp-cache.php:1513 +#: plugins/multisite.php:33 plugins/searchengine.php:61 wp-cache.php:1514 msgid "Disable" msgstr "" @@ -262,17 +262,17 @@ msgid "" "the WPTouch helper plugin." msgstr "" -#: wp-cache-phase2.php:1334 +#: wp-cache-phase2.php:1347 msgid "Cache expiry cron job failed. Job will run again in 10 seconds." msgstr "" -#: wp-cache-phase2.php:1338 +#: wp-cache-phase2.php:1351 msgid "" "Cache expiry cron job took more than 30 seconds. You should probably run the " "garbage collector more often." msgstr "" -#: wp-cache-phase2.php:1347 +#: wp-cache-phase2.php:1360 msgid "[%1$s] WP Super Cache GC Report" msgstr "" @@ -420,7 +420,7 @@ msgid "" "a regular basis. Use <a href=\"#expirytime\">this form</a> to enable it." msgstr "" -#: wp-cache.php:309 wp-cache.php:337 wp-cache.php:409 wp-cache.php:2165 +#: wp-cache.php:309 wp-cache.php:337 wp-cache.php:409 wp-cache.php:2170 msgid "Dismiss" msgstr "" @@ -672,217 +672,219 @@ msgid "" "your host administrator." msgstr "" -#: wp-cache.php:1002 wp-cache.php:1143 +#: wp-cache.php:1002 wp-cache.php:1147 msgid "Caching" msgstr "" -#: wp-cache.php:1006 -msgid "Cache hits to this website for quick access." +#: wp-cache.php:1006 wp-cache.php:1150 +msgid "Caching On" msgstr "" -#: wp-cache.php:1006 wp-cache.php:1008 wp-cache.php:1024 wp-cache.php:1033 -#: wp-cache.php:1040 wp-cache.php:1043 wp-cache.php:1061 wp-cache.php:1146 +#: wp-cache.php:1006 wp-cache.php:1009 wp-cache.php:1025 wp-cache.php:1030 +#: wp-cache.php:1031 wp-cache.php:1038 wp-cache.php:1065 wp-cache.php:1150 msgid "Recommended" msgstr "" -#: wp-cache.php:1007 -msgid "Use mod_rewrite to serve cache files." +#: wp-cache.php:1007 wp-cache.php:1151 +msgid "Caching Off" msgstr "" #: wp-cache.php:1008 -msgid "Use PHP to serve cache files." +msgid "Use mod_rewrite to serve cache files." msgstr "" #: wp-cache.php:1009 -msgid "Legacy page caching." +msgid "Use PHP to serve cache files." msgstr "" #: wp-cache.php:1010 +msgid "Legacy page caching." +msgstr "" + +#: wp-cache.php:1011 msgid "" "Mod_rewrite is fastest, PHP is almost as fast and easier to get working, " "while legacy caching is slower again, but more flexible and also easy to get " "working. New users should use PHP caching." msgstr "" -#: wp-cache.php:1016 +#: wp-cache.php:1017 msgid "Miscellaneous" msgstr "" -#: wp-cache.php:1022 +#: wp-cache.php:1023 msgid "Warning! Compression is disabled as gzencode() function was not found." msgstr "" -#: wp-cache.php:1024 +#: wp-cache.php:1025 msgid "Compress pages so they’re served more quickly to visitors." msgstr "" -#: wp-cache.php:1025 +#: wp-cache.php:1026 msgid "" "Compression is disabled by default because some hosts have problems with " "compressed files. Switching it on and off clears the cache." msgstr "" -#: wp-cache.php:1033 +#: wp-cache.php:1030 +msgid "" +"Don’t cache pages for <acronym title=\"Logged in users and those that " +"comment\">known users</acronym>." +msgstr "" + +#: wp-cache.php:1031 +msgid "" +"Cache rebuild. Serve a supercache file to anonymous users while a new file " +"is being generated." +msgstr "" + +#: wp-cache.php:1038 msgid "" "304 Not Modified browser caching. Indicate when a page has not been modified " "since it was last requested." msgstr "" -#: wp-cache.php:1036 +#: wp-cache.php:1041 msgid "" "Warning! 304 browser caching is only supported when mod_rewrite caching is " "not used." msgstr "" -#: wp-cache.php:1038 +#: wp-cache.php:1043 msgid "" "304 support is disabled by default because some hosts have had problems with " "the headers used in the past." msgstr "" -#: wp-cache.php:1040 -msgid "" -"Don’t cache pages for <acronym title=\"Logged in users and those that " -"comment\">known users</acronym>." -msgstr "" - -#: wp-cache.php:1041 +#: wp-cache.php:1046 msgid "Don’t cache pages with GET parameters. (?x=y at the end of a url)" msgstr "" -#: wp-cache.php:1042 +#: wp-cache.php:1047 msgid "" "Make known users anonymous so they’re served supercached static files." msgstr "" -#: wp-cache.php:1043 -msgid "" -"Cache rebuild. Serve a supercache file to anonymous users while a new file " -"is being generated." -msgstr "" - -#: wp-cache.php:1044 +#: wp-cache.php:1048 msgid "" "Proudly tell the world your server is <a href=\"%s\">Stephen Fry proof</a>! " "(places a message in your blog’s footer)" msgstr "" -#: wp-cache.php:1050 wp-cache.php:1350 wp-cache.php:1982 +#: wp-cache.php:1054 wp-cache.php:1351 wp-cache.php:1987 msgid "Advanced" msgstr "" -#: wp-cache.php:1054 +#: wp-cache.php:1058 msgid "" "Enable dynamic caching. Requires PHP or legacy caching. (See <a href=" "\"http://wordpress.org/plugins/wp-super-cache/faq/\">FAQ</a> or wp-super-" "cache/plugins/dynamic-cache-test.php for example code.)" msgstr "" -#: wp-cache.php:1055 +#: wp-cache.php:1059 msgid "" "Mobile device support. (External plugin or theme required. See the <a href=" "\"http://wordpress.org/plugins/wp-super-cache/faq/\">FAQ</a> for further " "details.)" msgstr "" -#: wp-cache.php:1057 +#: wp-cache.php:1061 msgid "Mobile Browsers" msgstr "" -#: wp-cache.php:1057 +#: wp-cache.php:1061 msgid "Mobile Prefixes" msgstr "" -#: wp-cache.php:1059 +#: wp-cache.php:1063 msgid "" "Remove UTF8/blog charset support from .htaccess file. Only necessary if you " "see odd characters or punctuation looks incorrect. Requires rewrite rules " "update." msgstr "" -#: wp-cache.php:1060 +#: wp-cache.php:1064 msgid "Clear all cache files when a post or page is published or updated." msgstr "" -#: wp-cache.php:1061 +#: wp-cache.php:1065 msgid "Extra homepage checks. (Very occasionally stops homepage caching)" msgstr "" -#: wp-cache.php:1062 +#: wp-cache.php:1066 msgid "Only refresh current page when comments made." msgstr "" -#: wp-cache.php:1063 +#: wp-cache.php:1067 msgid "List the newest cached pages on this page." msgstr "" -#: wp-cache.php:1065 +#: wp-cache.php:1069 msgid "" -"Coarse file locking. You probably don’t need this but it may help if " -"your server is underpowered. Warning! <em>May cause your server to lock up " -"in very rare cases!</em>" +"Coarse file locking. You do not need this as it will slow down your website." msgstr "" -#: wp-cache.php:1067 +#: wp-cache.php:1071 msgid "" "Late init. Display cached files after WordPress has loaded. Most useful in " "legacy mode." msgstr "" -#: wp-cache.php:1069 +#: wp-cache.php:1073 msgid "Use object cache to store cached files." msgstr "" -#: wp-cache.php:1069 +#: wp-cache.php:1073 msgid "(Experimental)" msgstr "" -#: wp-cache.php:1071 +#: wp-cache.php:1075 msgid "<strong>DO NOT CACHE PAGE</strong> secret key: <a href=\"%s\">%s</a>" msgstr "" -#: wp-cache.php:1076 +#: wp-cache.php:1080 msgid "Cache Location" msgstr "" -#: wp-cache.php:1081 +#: wp-cache.php:1085 msgid "" "Change the location of your cache files. The default is WP_CONTENT_DIR . /" "cache/ which translates to %s." msgstr "" -#: wp-cache.php:1082 +#: wp-cache.php:1086 msgid "You must give the full path to the directory." msgstr "" -#: wp-cache.php:1083 +#: wp-cache.php:1087 msgid "" "If the directory does not exist, it will be created. Please make sure your " "web server user has write access to the parent directory. The parent " "directory must exist." msgstr "" -#: wp-cache.php:1084 +#: wp-cache.php:1088 msgid "" "If the new cache directory does not exist, it will be created and the " "contents of the old cache directory will be moved there. Otherwise, the old " "cache directory will be left where it is." msgstr "" -#: wp-cache.php:1085 +#: wp-cache.php:1089 msgid "" "Submit a blank entry to set it to the default directory, WP_CONTENT_DIR . /" "cache/." msgstr "" -#: wp-cache.php:1087 +#: wp-cache.php:1091 msgid "" "The plugin detected a bare directory index in your cache directory, which " "would let visitors see your cache files directly and might expose private " "posts." msgstr "" -#: wp-cache.php:1089 +#: wp-cache.php:1093 msgid "" "You are using mod_rewrite to serve cache files so the plugin has added " "<q>Options -Indexes</q> to the .htaccess file in the cache directory to " @@ -891,32 +893,32 @@ msgid "" "mode and move the cache outside of the web root." msgstr "" -#: wp-cache.php:1091 +#: wp-cache.php:1095 msgid "" "index.html files have been added in key directories, but unless directory " "indexes are disabled, it is probably better to store the cache files outside " "of the web root of %s" msgstr "" -#: wp-cache.php:1098 +#: wp-cache.php:1102 msgid "" "Since you are using mod_rewrite to serve cache files, you must choose a " "directory in your web root which is <q>%s</q> and update the mod_rewrite " "rules in the .htaccess file." msgstr "" -#: wp-cache.php:1106 +#: wp-cache.php:1110 msgid "Note:" msgstr "" -#: wp-cache.php:1108 +#: wp-cache.php:1112 msgid "" "Uninstall this plugin on the plugins page. It will automatically clean up " "after itself. If manual intervention is required, then simple instructions " "are provided." msgstr "" -#: wp-cache.php:1109 +#: wp-cache.php:1113 msgid "" "If uninstalling this plugin, make sure the directory <em>%s</em> is " "writeable by the webserver so the files <em>advanced-cache.php</em> and " @@ -924,14 +926,14 @@ msgid "" "files are writeable is probably a good idea!)" msgstr "" -#: wp-cache.php:1110 +#: wp-cache.php:1114 msgid "" "Please see the <a href=\"%1$s/wp-super-cache/readme.txt\">readme.txt</a> for " "instructions on uninstalling this script. Look for the heading, \"How to " "uninstall WP Super Cache\"." msgstr "" -#: wp-cache.php:1111 +#: wp-cache.php:1115 msgid "" "Need help? Check the <a href=\"%1$s\">Super Cache readme file</a>. It " "includes installation documentation, a FAQ and Troubleshooting tips. The <a " @@ -939,27 +941,15 @@ msgid "" "have been answered." msgstr "" -#: wp-cache.php:1114 wp-cache.php:1161 +#: wp-cache.php:1118 wp-cache.php:1163 msgid "Update Status" msgstr "" -#: wp-cache.php:1121 +#: wp-cache.php:1125 msgid "Accepted Filenames & Rejected URIs" msgstr "" -#: wp-cache.php:1146 -msgid "Caching On" -msgstr "" - -#: wp-cache.php:1147 -msgid "Caching Off" -msgstr "" - -#: wp-cache.php:1148 -msgid "Note: enables PHP caching, cache rebuild, and mobile support" -msgstr "" - -#: wp-cache.php:1158 +#: wp-cache.php:1160 msgid "" "Notice: PHP caching enabled but Supercache mod_rewrite rules detected. " "Cached files will be served using those rules. If your site is working ok, " @@ -967,119 +957,119 @@ msgid "" "the root of your install and remove the SuperCache rules." msgstr "" -#: wp-cache.php:1163 +#: wp-cache.php:1165 msgid "Cache Tester" msgstr "" -#: wp-cache.php:1164 +#: wp-cache.php:1166 msgid "Test your cached website by clicking the test button below." msgstr "" -#: wp-cache.php:1170 +#: wp-cache.php:1172 msgid "Fetching %s to prime cache: " msgstr "" -#: wp-cache.php:1172 wp-cache.php:1181 wp-cache.php:1193 +#: wp-cache.php:1174 wp-cache.php:1183 wp-cache.php:1195 msgid "OK" msgstr "" -#: wp-cache.php:1175 +#: wp-cache.php:1177 msgid "Fetching first copy of %s: " msgstr "" -#: wp-cache.php:1184 wp-cache.php:1195 +#: wp-cache.php:1186 wp-cache.php:1197 msgid "FAILED" msgstr "" -#: wp-cache.php:1187 +#: wp-cache.php:1189 msgid "Fetching second copy of %s: " msgstr "" -#: wp-cache.php:1199 +#: wp-cache.php:1201 msgid "One or more page requests failed:" msgstr "" -#: wp-cache.php:1218 wp-cache.php:1219 +#: wp-cache.php:1220 wp-cache.php:1221 msgid "Page %d: %d (%s)" msgstr "" -#: wp-cache.php:1225 +#: wp-cache.php:1227 msgid "Page 1: %s" msgstr "" -#: wp-cache.php:1226 +#: wp-cache.php:1228 msgid "Page 2: %s" msgstr "" -#: wp-cache.php:1227 +#: wp-cache.php:1229 msgid "The timestamps on both pages match!" msgstr "" -#: wp-cache.php:1229 +#: wp-cache.php:1231 msgid "The pages do not match! Timestamps differ or were not found!" msgstr "" -#: wp-cache.php:1230 +#: wp-cache.php:1232 msgid "Things you can do:" msgstr "" -#: wp-cache.php:1231 +#: wp-cache.php:1233 msgid "" "Load your homepage in a logged out browser, check the timestamp at the end " "of the html source. Load the page again and compare the timestamp. Caching " "is working if the timestamps match." msgstr "" -#: wp-cache.php:1232 +#: wp-cache.php:1234 msgid "" "Enable logging on the Debug page here. That should help you track down the " "problem." msgstr "" -#: wp-cache.php:1233 +#: wp-cache.php:1235 msgid "" "You should check Page 1 and Page 2 above for errors. Your local server " "configuration may not allow your website to access itself." msgstr "" -#: wp-cache.php:1241 +#: wp-cache.php:1243 msgid "Send non-secure (non https) request for homepage" msgstr "" -#: wp-cache.php:1242 +#: wp-cache.php:1244 msgid "Test Cache" msgstr "" -#: wp-cache.php:1246 +#: wp-cache.php:1248 msgid "Delete Cached Pages" msgstr "" -#: wp-cache.php:1247 +#: wp-cache.php:1249 msgid "" "Cached pages are stored on your server as html and PHP files. If you need to " "delete them, use the button below." msgstr "" -#: wp-cache.php:1250 wp-cache.php:2688 wp-cache.php:2707 wp-cache.php:2898 -#: wp-cache.php:3437 +#: wp-cache.php:1252 wp-cache.php:2693 wp-cache.php:2712 wp-cache.php:2903 +#: wp-cache.php:3442 msgid "Delete Cache" msgstr "" -#: wp-cache.php:1257 wp-cache.php:2694 +#: wp-cache.php:1259 wp-cache.php:2699 msgid "Delete Cache On All Blogs" msgstr "" -#: wp-cache.php:1262 +#: wp-cache.php:1264 msgid "Recommended Links and Plugins" msgstr "" -#: wp-cache.php:1263 +#: wp-cache.php:1265 msgid "" "Caching is only one part of making a website faster. Here are some other " "plugins that will help:" msgstr "" -#: wp-cache.php:1264 +#: wp-cache.php:1266 msgid "" "<a href=\"%s\">Yahoo! Yslow</a> is an extension for the Firefox add-on " "Firebug. It analyzes web pages and suggests ways to improve their " @@ -1087,99 +1077,92 @@ msgid "" "the performance tools online at <a href=\"%s\">GTMetrix</a>." msgstr "" -#: wp-cache.php:1265 +#: wp-cache.php:1267 msgid "" "<a href=\"%s\">Use Google Libraries</a> allows you to load some commonly " "used Javascript libraries from Google webservers. Ironically, it may reduce " "your Yslow score." msgstr "" -#: wp-cache.php:1266 -msgid "" -"<strong>Advanced users only:</strong> <a href=\"%s\">Speed up your site with " -"Caching and cache-control</a> explains how to make your site more cacheable " -"with .htaccess rules." -msgstr "" - -#: wp-cache.php:1267 +#: wp-cache.php:1268 msgid "" "<strong>Advanced users only:</strong> Install an object cache. Choose from " "<a href=\"%s\">Memcached</a>, <a href=\"%s\">XCache</a>, <a href=\"%s" "\">eAcccelerator</a> and others." msgstr "" -#: wp-cache.php:1268 +#: wp-cache.php:1269 msgid "" "<a href=\"%s\">Cron View</a> is a useful plugin to use when trying to debug " "garbage collection and preload problems." msgstr "" -#: wp-cache.php:1279 +#: wp-cache.php:1280 msgid "Need Help?" msgstr "" -#: wp-cache.php:1281 +#: wp-cache.php:1282 msgid "" "Use the debug system in the Debug tab above. It will tell you what the " "plugin is doing." msgstr "" -#: wp-cache.php:1282 +#: wp-cache.php:1283 msgid "<a href=\"%1$s\">Installation Help</a>" msgstr "" -#: wp-cache.php:1283 +#: wp-cache.php:1284 msgid "<a href=\"%1$s\">Frequently Asked Questions</a>" msgstr "" -#: wp-cache.php:1284 +#: wp-cache.php:1285 msgid "<a href=\"%1$s\">Support Forum</a>" msgstr "" -#: wp-cache.php:1285 +#: wp-cache.php:1286 msgid "<a href=\"%1$s\">Development Version</a>" msgstr "" -#: wp-cache.php:1287 +#: wp-cache.php:1288 msgid "Rate This Plugin!" msgstr "" -#: wp-cache.php:1288 +#: wp-cache.php:1289 msgid "" "Please <a href=\"%s\">rate</a> this plugin and tell me if it works for you " "or not. It really helps development." msgstr "" -#: wp-cache.php:1297 +#: wp-cache.php:1298 msgid "Cached pages since %1$s : <strong>%2$s</strong>" msgstr "" -#: wp-cache.php:1298 +#: wp-cache.php:1299 msgid "Newest Cached Pages:" msgstr "" -#: wp-cache.php:1302 +#: wp-cache.php:1303 msgid "Cached %s seconds ago" msgstr "" -#: wp-cache.php:1305 +#: wp-cache.php:1306 msgid "(may not always be accurate on busy sites)" msgstr "" -#: wp-cache.php:1321 +#: wp-cache.php:1322 msgid "" "Cache plugins are PHP scripts that live in a plugins folder inside the wp-" "super-cache folder. They are loaded when Supercache loads, much sooner than " "regular WordPress plugins." msgstr "" -#: wp-cache.php:1322 +#: wp-cache.php:1323 msgid "" "This is strictly an advanced feature only and knowledge of both PHP and " "WordPress actions is required to create them." msgstr "" -#: wp-cache.php:1323 +#: wp-cache.php:1324 msgid "" "<strong>Warning</strong>! Due to the way WordPress upgrades plugins, the " "plugins you upload to wp-super-cache/plugins/ will be deleted when you " @@ -1190,75 +1173,75 @@ msgid "" "\">developer documentation</a>." msgstr "" -#: wp-cache.php:1333 +#: wp-cache.php:1334 msgid "Available Plugins" msgstr "" -#: wp-cache.php:1350 +#: wp-cache.php:1351 msgid "Easy" msgstr "" -#: wp-cache.php:1350 +#: wp-cache.php:1351 msgid "CDN" msgstr "" -#: wp-cache.php:1350 +#: wp-cache.php:1351 msgid "Contents" msgstr "" -#: wp-cache.php:1350 +#: wp-cache.php:1351 msgid "Preload" msgstr "" -#: wp-cache.php:1350 +#: wp-cache.php:1351 msgid "Plugins" msgstr "" -#: wp-cache.php:1350 +#: wp-cache.php:1351 msgid "Debug" msgstr "" -#: wp-cache.php:1388 +#: wp-cache.php:1389 msgid "" "Notice: WP Super Cache mod_rewrite rule checks disabled unless running on <a " "href=\"%s\">the main site</a> of this network." msgstr "" -#: wp-cache.php:1397 +#: wp-cache.php:1398 msgid "Mod Rewrite Rules" msgstr "" -#: wp-cache.php:1403 +#: wp-cache.php:1404 msgid "WordPress MU Detected" msgstr "" -#: wp-cache.php:1403 +#: wp-cache.php:1404 msgid "" "Unfortunately, the rewrite rules cannot be updated automatically when " "running WordPress MU. Please open your .htaccess and add the following " "mod_rewrite rules above any other rules in that file." msgstr "" -#: wp-cache.php:1405 +#: wp-cache.php:1406 msgid "Mod Rewrite rules cannot be updated!" msgstr "" -#: wp-cache.php:1406 +#: wp-cache.php:1407 msgid "" "You must have <strong>BEGIN</strong> and <strong>END</strong> markers in %s." "htaccess for the auto update to work. They look like this and surround the " "main WordPress mod_rewrite rules:" msgstr "" -#: wp-cache.php:1408 +#: wp-cache.php:1409 msgid "Refresh this page when you have updated your .htaccess file." msgstr "" -#: wp-cache.php:1412 +#: wp-cache.php:1413 msgid "Thank you for upgrading." msgstr "" -#: wp-cache.php:1412 +#: wp-cache.php:1413 msgid "" "The mod_rewrite rules changed since you last installed this plugin. " "Unfortunately, you must remove the old supercache rules before the new ones " @@ -1270,11 +1253,11 @@ msgid "" "brave enough to use them." msgstr "" -#: wp-cache.php:1416 +#: wp-cache.php:1417 msgid "Trailing slash check required." msgstr "" -#: wp-cache.php:1416 +#: wp-cache.php:1417 msgid "" "It looks like your blog has URLs that end with a \"/\". Unfortunately since " "you installed this plugin a duplicate content bug has been found where URLs " @@ -1283,41 +1266,41 @@ msgid "" "and add these two rules to the two groups of Super Cache rules:" msgstr "" -#: wp-cache.php:1418 +#: wp-cache.php:1419 msgid "" "You can see where the rules go and examine the complete rules by clicking " "the \"View mod_rewrite rules\" link below." msgstr "" -#: wp-cache.php:1432 +#: wp-cache.php:1433 msgid "Mod Rewrite rules updated!" msgstr "" -#: wp-cache.php:1433 +#: wp-cache.php:1434 msgid "" "%s.htaccess has been updated with the necessary mod_rewrite rules. Please " "verify they are correct. They should look like this:" msgstr "" -#: wp-cache.php:1435 +#: wp-cache.php:1436 msgid "Mod Rewrite rules must be updated!" msgstr "" -#: wp-cache.php:1436 +#: wp-cache.php:1437 msgid "" "Your %s.htaccess is not writable by the webserver and must be updated with " "the necessary mod_rewrite rules. The new rules go above the regular " "WordPress rules as shown in the code below:" msgstr "" -#: wp-cache.php:1441 +#: wp-cache.php:1442 msgid "" "WP Super Cache mod rewrite rules were detected in your %s.htaccess file.<br /" "> Click the following link to see the lines added to that file. If you have " "upgraded the plugin, make sure these rules match." msgstr "" -#: wp-cache.php:1444 +#: wp-cache.php:1445 msgid "" "A difference between the rules in your .htaccess file and the plugin rewrite " "rules has been found. This could be simple whitespace differences, but you " @@ -1325,247 +1308,247 @@ msgid "" "Click the ’Update Mod_Rewrite Rules’ button to update the rules." msgstr "" -#: wp-cache.php:1446 +#: wp-cache.php:1447 msgid "View Mod_Rewrite Rules" msgstr "" -#: wp-cache.php:1452 wp-cache.php:3016 +#: wp-cache.php:1453 wp-cache.php:3021 msgid "Rules must be added to %s too:" msgstr "" -#: wp-cache.php:1458 +#: wp-cache.php:1459 msgid "Gzip encoding rules in %s.htaccess created." msgstr "" -#: wp-cache.php:1464 +#: wp-cache.php:1465 msgid "Fix Configuration" msgstr "" -#: wp-cache.php:1467 +#: wp-cache.php:1468 msgid "Restore Default Configuration" msgstr "" -#: wp-cache.php:1475 +#: wp-cache.php:1476 msgid "" "Comment moderation is enabled. Your comment may take some time to appear." msgstr "" -#: wp-cache.php:1500 +#: wp-cache.php:1501 msgid "Lock Down:" msgstr "" -#: wp-cache.php:1501 +#: wp-cache.php:1502 msgid "" "Prepare your server for an expected spike in traffic by enabling the lock " "down. When this is enabled, new comments on a post will not refresh the " "cached static files." msgstr "" -#: wp-cache.php:1502 +#: wp-cache.php:1503 msgid "" "Developers: Make your plugin lock down compatible by checking the " "\"WPLOCKDOWN\" constant. The following code will make sure your plugin " "respects the WPLOCKDOWN setting." msgstr "" -#: wp-cache.php:1504 +#: wp-cache.php:1505 msgid "Sorry. My blog is locked down. Updates will appear shortly" msgstr "" -#: wp-cache.php:1508 +#: wp-cache.php:1509 msgid "" "WordPress is locked down. Super Cache static files will not be deleted when " "new comments are made." msgstr "" -#: wp-cache.php:1510 +#: wp-cache.php:1511 msgid "" "WordPress is not locked down. New comments will refresh Super Cache static " "files as normal." msgstr "" -#: wp-cache.php:1516 +#: wp-cache.php:1517 msgid "Lock Down" msgstr "" -#: wp-cache.php:1524 +#: wp-cache.php:1525 msgid "Directly Cached Files" msgstr "" -#: wp-cache.php:1576 +#: wp-cache.php:1577 msgid "Cannot delete directory" msgstr "" -#: wp-cache.php:1585 +#: wp-cache.php:1586 msgid "%s removed!" msgstr "" -#: wp-cache.php:1593 +#: wp-cache.php:1594 msgid "" "You must make %s writable to enable this feature. As this is a security " "risk, please make it read-only after your page is generated." msgstr "" -#: wp-cache.php:1598 +#: wp-cache.php:1599 msgid "" "%s is writable. Please make it readonly after your page is generated as this " "is a security risk." msgstr "" -#: wp-cache.php:1613 +#: wp-cache.php:1614 msgid "Existing direct page" msgstr "" -#: wp-cache.php:1613 +#: wp-cache.php:1614 msgid "Delete cached file" msgstr "" -#: wp-cache.php:1618 +#: wp-cache.php:1619 msgid "Add direct page:" msgstr "" -#: wp-cache.php:1620 +#: wp-cache.php:1621 msgid "" "Directly cached files are files created directly off %s where your blog " "lives. This feature is only useful if you are expecting a major Digg or " "Slashdot level of traffic to one post or page." msgstr "" -#: wp-cache.php:1622 +#: wp-cache.php:1623 msgid "" "For example: to cache <em>%1$sabout/</em>, you would enter %1$sabout/ or /" "about/. The cached file will be generated the next time an anonymous user " "visits that page." msgstr "" -#: wp-cache.php:1623 +#: wp-cache.php:1624 msgid "" "Make the textbox blank to remove it from the list of direct pages and delete " "the cached file." msgstr "" -#: wp-cache.php:1628 +#: wp-cache.php:1629 msgid "Update Direct Pages" msgstr "" -#: wp-cache.php:1656 +#: wp-cache.php:1657 msgctxt "timezone date format" msgid "Y-m-d G:i:s" msgstr "" -#: wp-cache.php:1724 +#: wp-cache.php:1729 msgid "Expiry Time & Garbage Collection" msgstr "" -#: wp-cache.php:1726 +#: wp-cache.php:1731 msgid "" "<abbr title=\"Coordinated Universal Time\">UTC</abbr> time is <code>%s</code>" msgstr "" -#: wp-cache.php:1729 +#: wp-cache.php:1734 msgid "Local time is <code>%1$s</code>" msgstr "" -#: wp-cache.php:1733 +#: wp-cache.php:1738 msgid "Next scheduled garbage collection will be at <strong>%s UTC</strong>" msgstr "" -#: wp-cache.php:1737 +#: wp-cache.php:1742 msgid "" "Warning! <strong>PRELOAD MODE</strong> activated. Supercache files will not " "be deleted regardless of age." msgstr "" -#: wp-cache.php:1755 +#: wp-cache.php:1760 msgid "Cache Timeout" msgstr "" -#: wp-cache.php:1756 wp-cache.php:1759 +#: wp-cache.php:1761 wp-cache.php:1764 msgid "seconds" msgstr "" -#: wp-cache.php:1757 +#: wp-cache.php:1762 msgid "" "How long should cached pages remain fresh? Set to 0 to disable garbage " "collection. A good starting point is 3600 seconds." msgstr "" -#: wp-cache.php:1758 +#: wp-cache.php:1763 msgid "Scheduler" msgstr "" -#: wp-cache.php:1758 +#: wp-cache.php:1763 msgid "Timer:" msgstr "" -#: wp-cache.php:1759 +#: wp-cache.php:1764 msgid "Check for stale cached files every <em>interval</em> seconds." msgstr "" -#: wp-cache.php:1760 +#: wp-cache.php:1765 msgid "Clock:" msgstr "" -#: wp-cache.php:1761 +#: wp-cache.php:1766 msgid "HH:MM" msgstr "" -#: wp-cache.php:1761 +#: wp-cache.php:1766 msgid "" "Check for stale cached files at this time <strong>(UTC)</strong> or starting " "at this time every <em>interval</em> below." msgstr "" -#: wp-cache.php:1763 +#: wp-cache.php:1768 msgid "Interval:" msgstr "" -#: wp-cache.php:1769 +#: wp-cache.php:1774 msgid "Notification Emails" msgstr "" -#: wp-cache.php:1770 +#: wp-cache.php:1775 msgid "Email me when the garbage collection runs." msgstr "" -#: wp-cache.php:1772 +#: wp-cache.php:1777 msgid "Garbage Collection" msgstr "" -#: wp-cache.php:1773 +#: wp-cache.php:1778 msgid "" "<em>Garbage collection</em> is the simple act of throwing out your garbage. " "For this plugin that would be old or <em>stale</em> cached files that may be " "out of date. New cached files are described as <em>fresh</em>." msgstr "" -#: wp-cache.php:1774 +#: wp-cache.php:1779 msgid "" "Cached files are fresh for a limited length of time. You can set that time " "in the <em>Cache Timeout</em> text box on this page." msgstr "" -#: wp-cache.php:1775 +#: wp-cache.php:1780 msgid "" "Stale cached files are not removed as soon as they become stale. They have " "to be removed by the garbage collecter. That is why you have to tell the " "plugin when the garbage collector should run." msgstr "" -#: wp-cache.php:1776 +#: wp-cache.php:1781 msgid "" "Use the <em>Timer</em> or <em>Clock</em> schedulers to define when the " "garbage collector should run." msgstr "" -#: wp-cache.php:1777 +#: wp-cache.php:1782 msgid "" "The <em>Timer</em> scheduler tells the plugin to run the garbage collector " "at regular intervals. When one garbage collection is done, the next run is " "scheduled." msgstr "" -#: wp-cache.php:1778 +#: wp-cache.php:1783 msgid "" "Or, the <em>Clock</em> scheduler allows the garbage collection to run at " "specific times. If set to run hourly or twice daily, the garbage collector " @@ -1574,42 +1557,42 @@ msgid "" "the time specified." msgstr "" -#: wp-cache.php:1780 +#: wp-cache.php:1785 msgid "" "There are no best garbage collection settings but here are a few scenarios. " "Garbage collection is separate to other actions that clear our cached files " "like leaving a comment or publishing a post." msgstr "" -#: wp-cache.php:1782 +#: wp-cache.php:1787 msgid "" "Sites that want to serve lots of newly generated data should set the " "<em>Cache Timeout</em> to 60 and use the <em>Timer</em> scheduler set to 90 " "seconds." msgstr "" -#: wp-cache.php:1783 +#: wp-cache.php:1788 msgid "" "Sites with widgets and rss feeds in their sidebar should probably use a " "timeout of 3600 seconds and set the timer to 600 seconds. Stale files will " "be caught within 10 minutes of going stale." msgstr "" -#: wp-cache.php:1784 +#: wp-cache.php:1789 msgid "" "Sites with lots of static content, no widgets or rss feeds in their sidebar " "can use a timeout of 86400 seconds or even more and set the timer to " "something equally long." msgstr "" -#: wp-cache.php:1785 +#: wp-cache.php:1790 msgid "" "Sites where an external data source updates at a particular time every day " "should set the timeout to 86400 seconds and use the Clock scheduler set " "appropriately." msgstr "" -#: wp-cache.php:1787 +#: wp-cache.php:1792 msgid "" "Checking for and deleting expired files is expensive, but it’s " "expensive leaving them there too. On a very busy site, you should set the " @@ -1620,81 +1603,81 @@ msgid "" "using mod_rewrite or PHP caching." msgstr "" -#: wp-cache.php:1788 +#: wp-cache.php:1793 msgid "Set the expiry time to 0 seconds to disable garbage collection." msgstr "" -#: wp-cache.php:1789 +#: wp-cache.php:1794 msgid "Change Expiration" msgstr "" -#: wp-cache.php:1833 +#: wp-cache.php:1838 msgid "Rejected User Agents" msgstr "" -#: wp-cache.php:1834 +#: wp-cache.php:1839 msgid "" "Strings in the HTTP ’User Agent’ header that prevent WP-Cache " "from caching bot, spiders, and crawlers’ requests. Note that super " "cached files are still sent to these agents if they already exists." msgstr "" -#: wp-cache.php:1841 +#: wp-cache.php:1846 msgid "Save UA Strings" msgstr "" -#: wp-cache.php:1864 +#: wp-cache.php:1869 msgid "" "Do not cache the following page types. See the <a href=\"http://codex." "wordpress.org/Conditional_Tags\">Conditional Tags</a> documentation for a " "complete discussion on each type." msgstr "" -#: wp-cache.php:1867 +#: wp-cache.php:1872 msgid "Single Posts" msgstr "" -#: wp-cache.php:1868 +#: wp-cache.php:1873 msgid "Pages" msgstr "" -#: wp-cache.php:1869 +#: wp-cache.php:1874 msgid "Front Page" msgstr "" -#: wp-cache.php:1870 +#: wp-cache.php:1875 msgid "Home" msgstr "" -#: wp-cache.php:1871 +#: wp-cache.php:1876 msgid "Archives" msgstr "" -#: wp-cache.php:1872 +#: wp-cache.php:1877 msgid "Tags" msgstr "" -#: wp-cache.php:1873 +#: wp-cache.php:1878 msgid "Category" msgstr "" -#: wp-cache.php:1874 +#: wp-cache.php:1879 msgid "Feeds" msgstr "" -#: wp-cache.php:1875 +#: wp-cache.php:1880 msgid "Search Pages" msgstr "" -#: wp-cache.php:1876 +#: wp-cache.php:1881 msgid "Author Pages" msgstr "" -#: wp-cache.php:1878 wp-cache.php:1992 +#: wp-cache.php:1883 wp-cache.php:1997 msgid "Save" msgstr "" -#: wp-cache.php:1895 +#: wp-cache.php:1900 msgid "" "Add here strings (not a filename) that forces a page not to be cached. For " "example, if your URLs include year and you dont want to cache last year " @@ -1703,51 +1686,51 @@ msgid "" "cache that page." msgstr "" -#: wp-cache.php:1901 +#: wp-cache.php:1906 msgid "Save Strings" msgstr "" -#: wp-cache.php:1917 +#: wp-cache.php:1922 msgid "" "Add here those filenames that can be cached, even if they match one of the " "rejected substring specified above." msgstr "" -#: wp-cache.php:1923 +#: wp-cache.php:1928 msgid "Save Files" msgstr "" -#: wp-cache.php:1966 +#: wp-cache.php:1971 msgid "Currently logging to: %s" msgstr "" -#: wp-cache.php:1969 +#: wp-cache.php:1974 msgid "" "Fix problems with the plugin by debugging it here. It can log them to a file " "in your cache directory." msgstr "" -#: wp-cache.php:1973 +#: wp-cache.php:1978 msgid "Debugging" msgstr "" -#: wp-cache.php:1974 +#: wp-cache.php:1979 msgid "IP Address" msgstr "" -#: wp-cache.php:1974 +#: wp-cache.php:1979 msgid "(only log requests from this IP address. Your IP is %s)" msgstr "" -#: wp-cache.php:1975 +#: wp-cache.php:1980 msgid "Cache Status Messages" msgstr "" -#: wp-cache.php:1976 +#: wp-cache.php:1981 msgid "Display comments at the end of every page like this:" msgstr "" -#: wp-cache.php:1982 +#: wp-cache.php:1987 msgid "" "In very rare cases two problems may arise on some blogs:<ol><li> The front " "page may start downloading as a zip file.</li><li> The wrong page is " @@ -1755,7 +1738,7 @@ msgid "" "and the permalink structure is <em>/%category%/%postname%/</em>.</li></ol>" msgstr "" -#: wp-cache.php:1983 +#: wp-cache.php:1988 msgid "" "I’m 99% certain that they aren’t bugs in WP Super Cache and they " "only happen in very rare cases but you can run a simple check once every 5 " @@ -1763,54 +1746,54 @@ msgid "" "emailed if there is a problem." msgstr "" -#: wp-cache.php:1985 +#: wp-cache.php:1990 msgid "Check front page every 5 minutes." msgstr "" -#: wp-cache.php:1986 +#: wp-cache.php:1991 msgid "Front page text" msgstr "" -#: wp-cache.php:1986 +#: wp-cache.php:1991 msgid "" "Text to search for on your front page. If this text is missing, the cache " "will be cleared. Leave blank to disable." msgstr "" -#: wp-cache.php:1987 +#: wp-cache.php:1992 msgid "Clear cache on error." msgstr "" -#: wp-cache.php:1988 +#: wp-cache.php:1993 msgid "Email the blog admin when checks are made. (useful for testing)" msgstr "" -#: wp-cache.php:2002 +#: wp-cache.php:2007 msgid "" "Error: GZIP compression is enabled. Disable it if you want to enable wp-" "cache." msgstr "" -#: wp-cache.php:2052 wp-cache.php:2351 wp-cache.php:2387 +#: wp-cache.php:2057 wp-cache.php:2356 wp-cache.php:2392 msgid "Warning" msgstr "" -#: wp-cache.php:2052 +#: wp-cache.php:2057 msgid "" "GZIP compression is enabled in WordPress, wp-cache will be bypassed until " "you disable gzip compression." msgstr "" -#: wp-cache.php:2149 wp-cache.php:2155 +#: wp-cache.php:2154 wp-cache.php:2160 msgid "WP Super Cache Warning!" msgstr "" -#: wp-cache.php:2150 +#: wp-cache.php:2155 msgid "" "All users of this site have been logged out to refresh their login cookies." msgstr "" -#: wp-cache.php:2156 +#: wp-cache.php:2161 msgid "" "Your server is configured to show files and directories, which may expose " "sensitive data such as login cookies to attackers in the cache directories. " @@ -1819,77 +1802,77 @@ msgid "" "directory on the Advanced Settings page." msgstr "" -#: wp-cache.php:2158 +#: wp-cache.php:2163 msgid "" "If you just installed WP Super Cache for the first time, you can dismiss " "this message. Otherwise, you should probably refresh the login cookies of " "all logged in WordPress users here by clicking the logout link below." msgstr "" -#: wp-cache.php:2161 +#: wp-cache.php:2166 msgid "" "Your site is using a very old version of WordPress. When you update to the " "latest version everyone will be logged out and cookie information updated." msgstr "" -#: wp-cache.php:2163 +#: wp-cache.php:2168 msgid "" "The logout link will log out all WordPress users on this site except you. " "Your authentication cookie will be updated, but you will not be logged out." msgstr "" -#: wp-cache.php:2167 +#: wp-cache.php:2172 msgid "Logout" msgstr "" -#: wp-cache.php:2271 wp-cache.php:2276 wp-cache.php:2310 wp-cache.php:2315 -#: wp-cache.php:2321 +#: wp-cache.php:2276 wp-cache.php:2281 wp-cache.php:2315 wp-cache.php:2320 +#: wp-cache.php:2326 msgid "Error" msgstr "" -#: wp-cache.php:2271 +#: wp-cache.php:2276 msgid "" "Your cache directory (<strong>%1$s</strong>) did not exist and couldn’" "t be created by the web server. Check %1$s permissions." msgstr "" -#: wp-cache.php:2276 +#: wp-cache.php:2281 msgid "" "Your cache directory (<strong>%1$s</strong>) or <strong>%2$s</strong> need " "to be writable for this plugin to work. Double-check it." msgstr "" -#: wp-cache.php:2310 +#: wp-cache.php:2315 msgid "" "Your WP-Cache config file (<strong>%s</strong>) is out of date and not " "writable by the Web server. Please delete it and refresh this page." msgstr "" -#: wp-cache.php:2315 +#: wp-cache.php:2320 msgid "" "Configuration file missing and %1$s directory (<strong>%2$s</strong>) is " "not writable by the web server. Check its permissions." msgstr "" -#: wp-cache.php:2321 +#: wp-cache.php:2326 msgid "" "Sample WP-Cache config file (<strong>%s</strong>) does not exist. Verify " "your installation." msgstr "" -#: wp-cache.php:2351 +#: wp-cache.php:2356 msgid "Could not update %s!</em> WPCACHEHOME must be set in config file." msgstr "" -#: wp-cache.php:2387 +#: wp-cache.php:2392 msgid "%s/advanced-cache.php</em> does not exist or cannot be updated." msgstr "" -#: wp-cache.php:2388 +#: wp-cache.php:2393 msgid "1. If it already exists, please delete the file first." msgstr "" -#: wp-cache.php:2389 +#: wp-cache.php:2394 msgid "" "2. Make %1$s writable using the chmod command through your ftp or server " "software. (<em>chmod 777 %1$s</em>) and refresh this page. This is only a " @@ -1897,24 +1880,24 @@ msgid "" "again. (Change 777 to 755 in the previous command)" msgstr "" -#: wp-cache.php:2390 +#: wp-cache.php:2395 msgid "3. Refresh this page to update <em>%s/advanced-cache.php</em>" msgstr "" -#: wp-cache.php:2391 +#: wp-cache.php:2396 msgid "" "If that doesn’t work, make sure the file <em>%s/advanced-cache.php</" "em> doesn’t exist:" msgstr "" -#: wp-cache.php:2392 +#: wp-cache.php:2397 msgid "" "<li>1. Open <em>%1$s$wp_cache_file</em> in a text editor.</li><li>2. Change " "the text <em>CACHEHOME</em> to <em>%2$s</em></li><li>3. Save the file and " "copy it to <em>%3$s</em> and refresh this page.</li>" msgstr "" -#: wp-cache.php:2415 +#: wp-cache.php:2420 msgid "" "<h3>WP_CACHE constant set to false</h3><p>The WP_CACHE constant is used by " "WordPress to load the code that serves cached pages. Unfortunately, it is " @@ -1923,20 +1906,20 @@ msgid "" "('WP_CACHE', true);</code></p>" msgstr "" -#: wp-cache.php:2417 +#: wp-cache.php:2422 msgid "" "<strong>Error: WP_CACHE is not enabled</strong> in your <code>wp-config.php</" "code> file and I couldn’t modify it." msgstr "" -#: wp-cache.php:2418 +#: wp-cache.php:2423 msgid "" "Edit <code>%s</code> and add the following line:<br /> <code>define" "('WP_CACHE', true);</code><br />Otherwise, <strong>WP-Cache will not be " "executed</strong> by WordPress core. " msgstr "" -#: wp-cache.php:2422 +#: wp-cache.php:2427 msgid "" "<h3>WP_CACHE constant added to wp-config.php</h3><p>If you continue to see " "this warning message please see point 5 of the <a href=\"http://wordpress." @@ -1944,131 +1927,131 @@ msgid "" "line must be moved up." msgstr "" -#: wp-cache.php:2450 +#: wp-cache.php:2455 msgid "Cache Contents" msgstr "" -#: wp-cache.php:2453 +#: wp-cache.php:2458 msgid "Object cache in use. No cache listing available." msgstr "" -#: wp-cache.php:2477 +#: wp-cache.php:2482 msgid "Deleting supercache file: <strong>%s</strong><br />" msgstr "" -#: wp-cache.php:2499 +#: wp-cache.php:2504 msgid "Deleting wp-cache file: <strong>%s</strong><br />" msgstr "" -#: wp-cache.php:2566 +#: wp-cache.php:2571 msgid "" "Cache stats are not automatically generated. You must click the link below " "to regenerate the stats on this page." msgstr "" -#: wp-cache.php:2567 +#: wp-cache.php:2572 msgid "Regenerate cache stats" msgstr "" -#: wp-cache.php:2569 +#: wp-cache.php:2574 msgid "Cache stats last generated: %s minutes ago." msgstr "" -#: wp-cache.php:2575 +#: wp-cache.php:2580 msgid "WP-Cache" msgstr "" -#: wp-cache.php:2576 wp-cache.php:2591 +#: wp-cache.php:2581 wp-cache.php:2596 msgid "%s Cached Pages" msgstr "" -#: wp-cache.php:2577 wp-cache.php:2596 +#: wp-cache.php:2582 wp-cache.php:2601 msgid "%s Expired Pages" msgstr "" -#: wp-cache.php:2590 +#: wp-cache.php:2595 msgid "WP-Super-Cache" msgstr "" -#: wp-cache.php:2600 +#: wp-cache.php:2605 msgid "Fresh WP-Cached Files" msgstr "" -#: wp-cache.php:2601 wp-cache.php:2617 wp-cache.php:2633 wp-cache.php:2649 +#: wp-cache.php:2606 wp-cache.php:2622 wp-cache.php:2638 wp-cache.php:2654 msgid "URI" msgstr "" -#: wp-cache.php:2601 wp-cache.php:2617 +#: wp-cache.php:2606 wp-cache.php:2622 msgid "Key" msgstr "" -#: wp-cache.php:2601 wp-cache.php:2617 wp-cache.php:2633 wp-cache.php:2649 +#: wp-cache.php:2606 wp-cache.php:2622 wp-cache.php:2638 wp-cache.php:2654 msgid "Age" msgstr "" -#: wp-cache.php:2601 wp-cache.php:2617 wp-cache.php:2633 wp-cache.php:2649 +#: wp-cache.php:2606 wp-cache.php:2622 wp-cache.php:2638 wp-cache.php:2654 msgid "Delete" msgstr "" -#: wp-cache.php:2616 +#: wp-cache.php:2621 msgid "Stale WP-Cached Files" msgstr "" -#: wp-cache.php:2632 +#: wp-cache.php:2637 msgid "Fresh Super Cached Files" msgstr "" -#: wp-cache.php:2648 +#: wp-cache.php:2653 msgid "Stale Super Cached Files" msgstr "" -#: wp-cache.php:2664 +#: wp-cache.php:2669 msgid "Hide file list" msgstr "" -#: wp-cache.php:2666 +#: wp-cache.php:2671 msgid "Too many cached files, no listing possible." msgstr "" -#: wp-cache.php:2668 +#: wp-cache.php:2673 msgid "List all cached files" msgstr "" -#: wp-cache.php:2671 +#: wp-cache.php:2676 msgid "" "Expired files are files older than %s seconds. They are still used by the " "plugin and are deleted periodically." msgstr "" -#: wp-cache.php:2682 +#: wp-cache.php:2687 msgid "Delete Expired" msgstr "" -#: wp-cache.php:2707 +#: wp-cache.php:2712 msgid "Delete Super Cache cached files (opens in new window)" msgstr "" -#: wp-cache.php:2874 +#: wp-cache.php:2879 msgid "%1$s is Stephen Fry proof thanks to caching by %2$s" msgstr "" -#: wp-cache.php:2907 +#: wp-cache.php:2912 msgid "" "WP Super Cache must be configured. Go to <a href=\"%s\">the admin page</a> " "to enable and configure the plugin." msgstr "" -#: wp-cache.php:2913 +#: wp-cache.php:2918 msgid "Settings" msgstr "" -#: wp-cache.php:2923 +#: wp-cache.php:2928 msgid "" "WP Super Cache is disabled. Please go to the <a href=\"%s\">plugin admin " "page</a> to enable caching." msgstr "" -#: wp-cache.php:2926 +#: wp-cache.php:2931 msgid "" "Warning! WP Super Cache caching <strong>was</strong> broken but has been " "<strong>fixed</strong>! The script advanced-cache.php could not load wp-" @@ -2077,146 +2060,146 @@ msgid "" "message." msgstr "" -#: wp-cache.php:2947 +#: wp-cache.php:2952 msgid "[%s] Front page is gzipped! Please clear cache!" msgstr "" -#: wp-cache.php:2947 +#: wp-cache.php:2952 msgid "" "Please visit %s to clear the cache as the front page of your site is now " "downloading!" msgstr "" -#: wp-cache.php:2950 +#: wp-cache.php:2955 msgid "[%s] Front page is gzipped! Cache Cleared!" msgstr "" -#: wp-cache.php:2950 +#: wp-cache.php:2955 msgid "" "The cache on your blog has been cleared because the front page of your site " "is now downloading. Please visit %s to verify the cache has been cleared." msgstr "" -#: wp-cache.php:2957 +#: wp-cache.php:2962 msgid "[%s] Front page is not correct! Please clear cache!" msgstr "" -#: wp-cache.php:2957 +#: wp-cache.php:2962 msgid "" "Please visit %1$s to clear the cache as the front page of your site is not " "correct and missing the text, \"%2$s\"!" msgstr "" -#: wp-cache.php:2960 +#: wp-cache.php:2965 msgid "[%s] Front page is not correct! Cache Cleared!" msgstr "" -#: wp-cache.php:2960 +#: wp-cache.php:2965 msgid "" "The cache on your blog has been cleared because the front page of your site " "is missing the text \"%2$s\". Please visit %1$s to verify the cache has been " "cleared." msgstr "" -#: wp-cache.php:2965 +#: wp-cache.php:2970 msgid "[%s] Front page check!" msgstr "" -#: wp-cache.php:2965 +#: wp-cache.php:2970 msgid "" "WP Super Cache has checked the front page of your blog. Please visit %s if " "you would like to disable this." msgstr "" -#: wp-cache.php:3008 +#: wp-cache.php:3013 msgid "Cannot update .htaccess" msgstr "" -#: wp-cache.php:3008 +#: wp-cache.php:3013 msgid "" "The file <code>%s.htaccess</code> cannot be modified by the web server. " "Please correct this using the chmod command or your ftp client." msgstr "" -#: wp-cache.php:3008 +#: wp-cache.php:3013 msgid "Refresh this page when the file permissions have been modified." msgstr "" -#: wp-cache.php:3008 +#: wp-cache.php:3013 msgid "" "Alternatively, you can edit your <code>%s.htaccess</code> file manually and " "add the following code (before any WordPress rules):" msgstr "" -#: wp-cache.php:3012 +#: wp-cache.php:3017 msgid "" "To serve static html files your server must have the correct mod_rewrite " "rules added to a file called <code>%s.htaccess</code>" msgstr "" -#: wp-cache.php:3013 +#: wp-cache.php:3018 msgid "You can edit the file yourself. Add the following rules." msgstr "" -#: wp-cache.php:3014 +#: wp-cache.php:3019 msgid " Make sure they appear before any existing WordPress rules. " msgstr "" -#: wp-cache.php:3022 +#: wp-cache.php:3027 msgid "Update Mod_Rewrite Rules" msgstr "" -#: wp-cache.php:3185 +#: wp-cache.php:3190 msgid "[%1$s] Cache Preload Started" msgstr "" -#: wp-cache.php:3215 +#: wp-cache.php:3220 msgid "[%1$s] Refreshing %2$s taxonomy from %3$d to %4$d" msgstr "" -#: wp-cache.php:3264 +#: wp-cache.php:3269 msgid "[%1$s] Refreshing posts from %2$d to %3$d" msgstr "" -#: wp-cache.php:3285 +#: wp-cache.php:3290 msgid "[%1$s] Cache Preload Stopped" msgstr "" -#: wp-cache.php:3295 +#: wp-cache.php:3300 msgid "[%1$s] %2$d posts refreshed" msgstr "" -#: wp-cache.php:3295 +#: wp-cache.php:3300 msgid "Refreshed the following posts:" msgstr "" -#: wp-cache.php:3305 +#: wp-cache.php:3310 msgid "Scheduling next preload refresh in %d minutes." msgstr "" -#: wp-cache.php:3316 +#: wp-cache.php:3321 msgid "[%s] Cache Preload Completed" msgstr "" -#: wp-cache.php:3316 +#: wp-cache.php:3321 msgid "Cleaning up old supercache files." msgstr "" -#: wp-cache.php:3358 +#: wp-cache.php:3363 msgid "[%s] Preload may have stalled." msgstr "" -#: wp-cache.php:3358 +#: wp-cache.php:3363 msgid "" "Preload has been restarted.\n" "%s" msgstr "" -#: wp-cache.php:3401 +#: wp-cache.php:3406 msgid "Supercache Uninstall Problems" msgstr "" -#: wp-cache.php:3401 +#: wp-cache.php:3406 msgid "" "Dear User,\n" "\n" @@ -2234,7 +2217,7 @@ msgid "" "http://wordpress.org/plugins/wp-super-cache/" msgstr "" -#: wp-cache.php:3438 +#: wp-cache.php:3443 msgid "Delete cache of the current page" msgstr "" -- GitLab