WP Super Cache - Version 1.4.9

Version Description

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.

=

Download this release

Release Info

Developer donncha
Plugin Icon 128x128 WP Super Cache
Version 1.4.9
Comparing to
See all releases

Code changes from version 1.4.8 to 1.4.9

Changelog.txt CHANGED
@@ -1,3 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  2015-10-08 17:14 donncha
2
 
3
  * wp-cache.php: Don't check if .htaccess already created as the
1
+ 2017-02-03 17:17 donncha
2
+
3
+ * readme.txt, wp-cache.php: Bump version number to 1.4.9 and update
4
+ changelog
5
+
6
+ 2017-02-03 17:11 donncha
7
+
8
+ * wp-cache-phase1.php, wp-cache-phase2.php, wp-cache.php: * Github
9
+ merge:
10
+ * Make sure $cache_path has a trailing slash
11
+ (https://github.com/Automattic/wp-super-cache/pull/77)
12
+ * Remove flush()
13
+ (https://github.com/Automattic/wp-super-cache/pull/127) but also
14
+ check if headers are empty and flush and get headers again.
15
+ (https://github.com/Automattic/wp-super-cache/pull/179)
16
+ * Add fix for customizer
17
+ (https://github.com/Automattic/wp-super-cache/pull/161) and don't
18
+ cache PUT AND DELETE requests
19
+ (https://github.com/Automattic/wp-super-cache/pull/178)
20
+ * Check for superglobals before using them.
21
+ (https://github.com/Automattic/wp-super-cache/pull/131)
22
+
23
+ 2017-02-03 16:54 donncha
24
+
25
+ * plugins/multisite.php, wp-cache-base.php, wp-cache.php: Github
26
+ merge: Need to check more than WP_ALLOW_MULTISITE to detect
27
+ multisite installs.
28
+ https://github.com/Automattic/wp-super-cache/issues/97
29
+
30
+ 2017-02-03 15:07 donncha
31
+
32
+ * wp-cache-phase1.php: Github merge:
33
+ https://github.com/Automattic/wp-super-cache/pull/161 and also
34
+ don't cache PUT and DELETE requests (caught earlier than before)
35
+
36
+ 2017-02-03 14:45 donncha
37
+
38
+ * plugins/jetpack.php: Remove extra ">", props @dd32
39
+ https://github.com/Automattic/wp-super-cache/pull/168
40
+
41
+ 2017-02-03 14:37 donncha
42
+
43
+ * wp-super-cache.pot: Updated translation file
44
+
45
+ 2017-02-03 14:33 donncha
46
+
47
+ * wp-cache.php: github merge: some of the changes that were
48
+ supposed to be checked in the previous merge didn't make it.
49
+
50
+ 2017-02-03 10:18 donncha
51
+
52
+ * readme.txt: * Bump the tested version.
53
+ * Update the changelog
54
+
55
+ 2017-02-03 10:13 donncha
56
+
57
+ * Changelog.txt: Updated changelog
58
+
59
+ 2017-02-02 18:14 donncha
60
+
61
+ * readme.txt: Updated readme.txt changelog and docs
62
+
63
+ 2017-02-02 18:08 donncha
64
+
65
+ * ossdl-cdn.php, readme.txt, wp-cache-phase2.php, wp-cache.php:
66
+ Sync with GITHUB:
67
+ * Don't delete so many files on blogs with static homepages.
68
+ https://github.com/Automattic/wp-super-cache/pull/175
69
+ * Discourage use of file locking because semaphores cause
70
+ problems and it's not needed.
71
+ https://github.com/Automattic/wp-super-cache/pull/174
72
+ * Reorganise the settings page in small ways
73
+ https://github.com/Automattic/wp-super-cache/pull/173
74
+ * Fixed XSS in settings page. Props @jaypatel
75
+ https://github.com/Automattic/wp-super-cache/pull/172
76
+
77
+ 2017-01-11 16:58 kraftbj
78
+
79
+ * readme.txt, wp-cache-phase2.php: Github #138: Do not cache
80
+ PUT/DELETE requests
81
+
82
+ 2016-12-09 15:38 kraftbj
83
+
84
+ * wp-cache-phase2.php: Check that header parts exist to avoid
85
+ `Undefined Index` notices
86
+
87
+ 2016-12-09 15:37 kraftbj
88
+
89
+ * wp-cache-phase2.php: Update to Git master
90
+
91
+ 2016-12-09 10:25 donncha
92
+
93
+ * readme.txt: Bump the "tested up to" value
94
+
95
+ 2016-08-01 20:39 kraftbj
96
+
97
+ * readme.txt: Bump tested version to 4.6
98
+
99
+ 2016-05-09 14:56 kraftbj
100
+
101
+ * readme.txt: Bump tested version
102
+
103
+ 2016-03-07 15:24 kraftbj
104
+
105
+ * readme.txt: Update readme for previous commit
106
+
107
+ 2016-03-07 15:20 kraftbj
108
+
109
+ * wp-cache-phase2.php: Catch up SVN to GH
110
+
111
+ 2016-03-07 13:46 donncha
112
+
113
+ * readme.txt, wp-cache.php: Bumped version to 1.4.8 and updated
114
+ changelog
115
+
116
+ 2016-03-07 13:39 donncha
117
+
118
+ * wp-super-cache.pot: Updated translation pot file
119
+
120
+ 2016-03-07 12:37 donncha
121
+
122
+ * wp-cache.php: Remove this link as Google is reporting it as
123
+ malware. It's still available at
124
+ https://web.archive.org/web/20150914095007/http://bytes.com/topic/php/answers/3917-seconds-converted-hh-mm-ss.
125
+ Ref: https://github.com/Automattic/wp-super-cache/issues/106
126
+
127
+ 2015-12-16 18:14 kraftbj
128
+
129
+ * readme.txt, wp-cache.php: Update readme for 1.4.7
130
+
131
+ 2015-12-16 16:59 kraftbj
132
+
133
+ * wp-cache.php: Fix settings page layout breakage in 4.4.
134
+
135
+ 2015-12-02 15:50 kraftbj
136
+
137
+ * ossdl-cdn.php, wp-cache.php: Corrects typos. See
138
+ https://github.com/Automattic/wp-super-cache/issues/81
139
+
140
+ props https://github.com/christophherr
141
+
142
+ 2015-10-21 19:54 kraftbj
143
+
144
+ * wp-cache-phase1.php: Remove variable no longer defined after
145
+ previous update.
146
+
147
+ 2015-10-09 18:06 donncha
148
+
149
+ * Changelog.txt, readme.txt, wp-cache.php: Bump version to 1.4.6
150
+ and update changelog
151
+
152
  2015-10-08 17:14 donncha
153
 
154
  * wp-cache.php: Don't check if .htaccess already created as the
ossdl-cdn.php CHANGED
@@ -132,6 +132,8 @@ function scossdl_off_options() {
132
  update_option('ossdl_off_include_dirs', $_POST['ossdl_off_include_dirs'] == '' ? 'wp-content,wp-includes' : $_POST['ossdl_off_include_dirs']);
133
  update_option('ossdl_off_exclude', $_POST['ossdl_off_exclude']);
134
  update_option('ossdl_cname', $_POST['ossdl_cname']);
 
 
135
  update_option('ossdl_https', (int)$_POST['ossdl_https']);
136
  if ( isset( $_POST[ 'ossdlcdn' ] ) ) {
137
  $ossdlcdn = 1;
@@ -163,7 +165,7 @@ function scossdl_off_options() {
163
  <tr valign="top">
164
  <th scope="row"><label for="ossdl_off_cdn_url"><?php _e( 'Off-site URL', 'wp-super-cache' ); ?></label></th>
165
  <td>
166
- <input type="text" name="ossdl_off_cdn_url" value="<?php echo(get_option('ossdl_off_cdn_url')); ?>" size="64" class="regular-text code" /><br />
167
  <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>
168
  </td>
169
  </tr>
132
  update_option('ossdl_off_include_dirs', $_POST['ossdl_off_include_dirs'] == '' ? 'wp-content,wp-includes' : $_POST['ossdl_off_include_dirs']);
133
  update_option('ossdl_off_exclude', $_POST['ossdl_off_exclude']);
134
  update_option('ossdl_cname', $_POST['ossdl_cname']);
135
+ if ( !isset( $_POST[ 'ossdl_https' ] ) )
136
+ $_POST[ 'ossdl_https' ] = 0;
137
  update_option('ossdl_https', (int)$_POST['ossdl_https']);
138
  if ( isset( $_POST[ 'ossdlcdn' ] ) ) {
139
  $ossdlcdn = 1;
165
  <tr valign="top">
166
  <th scope="row"><label for="ossdl_off_cdn_url"><?php _e( 'Off-site URL', 'wp-super-cache' ); ?></label></th>
167
  <td>
168
+ <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 />
169
  <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>
170
  </td>
171
  </tr>
plugins/jetpack.php CHANGED
@@ -25,7 +25,7 @@ function wp_super_cache_jetpack_admin() {
25
  <h4><?php _e( 'Jetpack Mobile Theme', 'wp-super-cache' ); ?></h4>
26
  <?php
27
  if ( false == file_exists( dirname( WPCACHEHOME ) . '/jetpack/class.jetpack-user-agent.php' ) ) {
28
- 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>>";
29
  } else { ?>
30
  <form name="wp_manager" action="" method="post">
31
  <label><input type="radio" name="cache_jetpack" value="1" <?php if( $cache_jetpack ) { echo 'checked="checked" '; } ?>/> <?php _e( 'Enabled', 'wp-super-cache' ); ?></label>
25
  <h4><?php _e( 'Jetpack Mobile Theme', 'wp-super-cache' ); ?></h4>
26
  <?php
27
  if ( false == file_exists( dirname( WPCACHEHOME ) . '/jetpack/class.jetpack-user-agent.php' ) ) {
28
+ 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>";
29
  } else { ?>
30
  <form name="wp_manager" action="" method="post">
31
  <label><input type="radio" name="cache_jetpack" value="1" <?php if( $cache_jetpack ) { echo 'checked="checked" '; } ?>/> <?php _e( 'Enabled', 'wp-super-cache' ); ?></label>
plugins/multisite.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- if ( defined( 'WP_ALLOW_MULTISITE' ) )
4
  add_cacheaction( 'add_cacheaction', 'wp_super_cache_multisite_init' );
5
 
6
  function wp_super_cache_multisite_init() {
1
  <?php
2
 
3
+ if ( ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) )
4
  add_cacheaction( 'add_cacheaction', 'wp_super_cache_multisite_init' );
5
 
6
  function wp_super_cache_multisite_init() {
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === WP Super Cache ===
2
  Contributors: donncha, automattic, kraftbj
3
  Tags: performance,caching,wp-cache,wp-super-cache,cache
4
- Tested up to: 4.7
5
- Stable tag: 1.4.8
6
  Requires at least: 3.0
7
 
8
  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
58
 
59
  == Upgrade Notice ==
60
 
61
- = 1.4.8 =
62
- Removed malware URL in a code comment.
63
 
64
  == Changelog ==
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  = 1.4.8 =
67
  * Removed malware URL in a code comment. (harmless to operation of plugin but gets flagged by A/V software)
68
  * Updated translation file.
@@ -273,7 +288,6 @@ Removed malware URL in a code comment.
273
  * Fixed problem deleting cache file.
274
  * Don't delete cache files when moderated comments are deleted.
275
 
276
-
277
  = 0.9.7 =
278
  * Fixed problem with blogs in folders.
279
  * Added cache file listing and delete links to admin page.
@@ -320,67 +334,7 @@ Removed malware URL in a code comment.
320
  6. Fixed problems with posts and comments not refreshing.
321
 
322
  == Installation ==
323
- 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.
324
- 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.
325
- 3. Upload this directory to your plugins directory. It will create a 'wp-content/plugins/wp-super-cache/' directory.
326
- 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".
327
- 5. WordPress users should go to their Plugins page and activate "WP Super Cache".
328
- 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.
329
- 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:
330
-
331
- `-----------------.htaccess-----------------`
332
- `RewriteEngine On`
333
- `RewriteBase /`
334
-
335
- `RewriteCond %{REQUEST_METHOD} !=POST`
336
- `RewriteCond %{QUERY_STRING} !.*=.*`
337
- `RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$`
338
- `RewriteCond %{HTTP:Accept-Encoding} gzip`
339
- `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).*`
340
- `RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f`
341
- `RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]`
342
-
343
- `RewriteCond %{REQUEST_METHOD} !=POST`
344
- `RewriteCond %{QUERY_STRING} !.*=.*`
345
- `RewriteCond %{QUERY_STRING} !.*attachment_id=.*`
346
- `RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$`
347
- `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).*`
348
- `RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f`
349
- `RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]`
350
-
351
- `RewriteCond %{REQUEST_FILENAME} !-f`
352
- `RewriteCond %{REQUEST_FILENAME} !-d`
353
- `RewriteRule . /index.php [L]`
354
- `-----------------.htaccess-----------------`
355
- 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:
356
-
357
- `# BEGIN supercache`
358
- `<IfModule mod_mime.c>`
359
- ` <FilesMatch "\.html\.gz$">`
360
- ` ForceType text/html`
361
- ` FileETag None`
362
- ` </FilesMatch>`
363
- ` AddEncoding gzip .gz`
364
- ` AddType text/html .gz`
365
- `</IfModule>`
366
- `<IfModule mod_deflate.c>`
367
- ` SetEnvIfNoCase Request_URI \.gz$ no-gzip`
368
- `</IfModule>`
369
- `<IfModule mod_headers.c>`
370
- ` Header set Cache-Control 'max-age=3, must-revalidate'`
371
- `</IfModule>`
372
- `<IfModule mod_expires.c>`
373
- ` ExpiresActive On`
374
- ` ExpiresByType text/html A3`
375
- `</IfModule>`
376
- ``
377
- `# END supercache`
378
- 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:
379
-
380
- `<Directory /home/www/>`
381
- `AllowOverride All`
382
- `</Directory>`
383
- 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.
384
 
385
  == How to uninstall WP Super Cache ==
386
 
@@ -406,7 +360,9 @@ To manually uninstall:
406
 
407
  = How do I know my blog is being cached? =
408
 
409
- 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.
 
 
410
  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.
411
  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.
412
 
@@ -415,10 +371,6 @@ If the plugin rules are missing from your .htaccess file, the plugin will attemp
415
  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.
416
  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.
417
 
418
- = Why is WP-Super-Cache better than WP-Cache? =
419
-
420
- 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.
421
-
422
  = Will comments and other dynamic parts of my blog update immediately? =
423
 
424
  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.
@@ -559,6 +511,7 @@ If that doesn't work, add this line to your wp-config.php:
559
  `AddDefaultCharset CHARSET`
560
  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.
561
  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.
 
562
 
563
 
564
  == CDN ==
1
  === WP Super Cache ===
2
  Contributors: donncha, automattic, kraftbj
3
  Tags: performance,caching,wp-cache,wp-super-cache,cache
4
+ Tested up to: 4.8
5
+ Stable tag: 1.4.9
6
  Requires at least: 3.0
7
 
8
  A very fast caching engine for WordPress that produces static html files.
58
 
59
  == Upgrade Notice ==
60
 
61
+ = 1.4.9 =
62
+ 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.
63
 
64
  == Changelog ==
65
 
66
+ = 1.4.9 =
67
+ * Fixed bug when not running sem_remove after sem_release. See https://github.com/Automattic/wp-super-cache/issues/85
68
+ * Fixed a PHP error impacting PHP 7.1.
69
+ * Fixed a bug where we cached PUT and DELETE requests. We're treating them like POST requests now.
70
+ * Delete supercache cache files, even when supercache is disabled, because mod_rewrite rules might still be active.
71
+ * Updated the settings page, moving things around. [#173](https://github.com/Automattic/wp-super-cache/pull/173)
72
+ * 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.
73
+ * 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)
74
+ * 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)
75
+ * Fixed plugin deleting all cached pages when a site had a static homepage. [#175](https://github.com/Automattic/wp-super-cache/pull/175)
76
+ * Make sure $cache_path has a trailing slash [#177](https://github.com/Automattic/wp-super-cache/pull/77)
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)
78
+ * 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)
79
+ * Check for superglobals before using them. [#131](https://github.com/Automattic/wp-super-cache/pull/131)
80
+
81
  = 1.4.8 =
82
  * Removed malware URL in a code comment. (harmless to operation of plugin but gets flagged by A/V software)
83
  * Updated translation file.
288
  * Fixed problem deleting cache file.
289
  * Don't delete cache files when moderated comments are deleted.
290
 
 
291
  = 0.9.7 =
292
  * Fixed problem with blogs in folders.
293
  * Added cache file listing and delete links to admin page.
334
  6. Fixed problems with posts and comments not refreshing.
335
 
336
  == Installation ==
337
+ 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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
 
339
  == How to uninstall WP Super Cache ==
340
 
360
 
361
  = How do I know my blog is being cached? =
362
 
363
+ 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.
364
+
365
+ 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.
366
  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.
367
  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.
368
 
371
  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.
372
  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.
373
 
 
 
 
 
374
  = Will comments and other dynamic parts of my blog update immediately? =
375
 
376
  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.
511
  `AddDefaultCharset CHARSET`
512
  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.
513
  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.
514
+ 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.
515
 
516
 
517
  == CDN ==
wp-cache-base.php CHANGED
@@ -5,7 +5,7 @@ $WPSC_HTTP_HOST = htmlentities( $_SERVER[ 'HTTP_HOST' ] );
5
 
6
  // We want to be able to identify each blog in a WordPress MU install
7
  $blogcacheid = '';
8
- if ( defined( 'VHOST' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) {
9
  $blogcacheid = 'blog'; // main blog
10
  if( defined( 'SUBDOMAIN_INSTALL' ) && constant( 'SUBDOMAIN_INSTALL' ) == true ) {
11
  $blogcacheid = $WPSC_HTTP_HOST;
5
 
6
  // We want to be able to identify each blog in a WordPress MU install
7
  $blogcacheid = '';
8
+ if ( ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) {
9
  $blogcacheid = 'blog'; // main blog
10
  if( defined( 'SUBDOMAIN_INSTALL' ) && constant( 'SUBDOMAIN_INSTALL' ) == true ) {
11
  $blogcacheid = $WPSC_HTTP_HOST;
wp-cache-phase1.php CHANGED
@@ -47,8 +47,10 @@ if ( isset( $wp_cache_make_known_anon ) && $wp_cache_make_known_anon )
47
 
48
  do_cacheaction( 'cache_init' );
49
 
50
- if (!$cache_enabled || $_SERVER["REQUEST_METHOD"] == 'POST')
 
51
  return true;
 
52
 
53
  $file_expired = false;
54
  $cache_filename = '';
@@ -99,9 +101,11 @@ $wp_start_time = microtime();
99
 
100
  function get_wp_cache_key( $url = false ) {
101
  global $wp_cache_request_uri, $wp_cache_gzip_encoding, $WPSC_HTTP_HOST;
102
- if ( !$url )
103
  $url = $wp_cache_request_uri;
104
- 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() );
 
 
105
  }
106
 
107
  function wp_super_cache_init() {
47
 
48
  do_cacheaction( 'cache_init' );
49
 
50
+
51
+ if ( ! $cache_enabled || ( isset( $_SERVER["REQUEST_METHOD"] ) && in_array( $_SERVER["REQUEST_METHOD"], array( 'POST', 'PUT', 'DELETE' ) ) ) || isset( $_GET['customize_changeset_uuid'] ) ) {
52
  return true;
53
+ }
54
 
55
  $file_expired = false;
56
  $cache_filename = '';
101
 
102
  function get_wp_cache_key( $url = false ) {
103
  global $wp_cache_request_uri, $wp_cache_gzip_encoding, $WPSC_HTTP_HOST;
104
+ if ( ! $url ) {
105
  $url = $wp_cache_request_uri;
106
+ }
107
+ $server_port = isset( $_SERVER[ 'SERVER_PORT' ] ) ? intval( $_SERVER[ 'SERVER_PORT' ] ) : 0;
108
+ 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() );
109
  }
110
 
111
  function wp_super_cache_init() {
wp-cache-phase2.php CHANGED
@@ -121,12 +121,18 @@ if ( !function_exists( 'wp_cache_user_agent_is_rejected' ) ) {
121
 
122
  function wp_cache_get_response_headers() {
123
  if(function_exists('apache_response_headers')) {
124
- flush();
125
  $headers = apache_response_headers();
 
 
 
 
126
  } else if(function_exists('headers_list')) {
127
  $headers = array();
128
  foreach(headers_list() as $hdr) {
129
- list($header_name, $header_value) = explode(': ', $hdr, 2);
 
 
 
130
  $headers[$header_name] = $header_value;
131
  }
132
  } else
@@ -155,7 +161,7 @@ function wp_cache_is_rejected($uri) {
155
  function wp_cache_mutex_init() {
156
  global $mutex, $wp_cache_mutex_disabled, $use_flock, $blog_cache_dir, $mutex_filename, $sem_id;
157
 
158
- if( isset( $wp_cache_mutex_disabled) && $wp_cache_mutex_disabled )
159
  return true;
160
 
161
  if( !is_bool( $use_flock ) ) {
@@ -172,14 +178,14 @@ function wp_cache_mutex_init() {
172
  $mutex = @fopen( $blog_cache_dir . $mutex_filename, 'w' );
173
  } else {
174
  wp_cache_debug( "Created mutex lock on semaphore: {$sem_id}", 5 );
175
- $mutex = @sem_get( $sem_id, 1, 0644 | IPC_CREAT, 1 );
176
  }
177
  }
178
 
179
  function wp_cache_writers_entry() {
180
  global $mutex, $wp_cache_mutex_disabled, $use_flock;
181
 
182
- if( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled )
183
  return true;
184
 
185
  if( !$mutex ) {
@@ -192,7 +198,7 @@ function wp_cache_writers_entry() {
192
  flock($mutex, LOCK_EX);
193
  } else {
194
  wp_cache_debug( "grabbing lock using sem_acquire()", 5 );
195
- sem_acquire($mutex);
196
  }
197
 
198
  return true;
@@ -201,7 +207,7 @@ function wp_cache_writers_entry() {
201
  function wp_cache_writers_exit() {
202
  global $mutex, $wp_cache_mutex_disabled, $use_flock;
203
 
204
- if( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled )
205
  return true;
206
 
207
  if( !$mutex ) {
@@ -211,10 +217,12 @@ function wp_cache_writers_exit() {
211
 
212
  if ( $use_flock ) {
213
  wp_cache_debug( "releasing lock using flock()", 5 );
214
- flock($mutex, LOCK_UN);
215
  } else {
216
- wp_cache_debug( "releasing lock using sem_release()", 5 );
217
- sem_release($mutex);
 
 
218
  }
219
  }
220
 
@@ -259,6 +267,12 @@ function wp_cache_ob_callback( $buffer ) {
259
  } elseif ( $_SERVER["REQUEST_METHOD"] == 'POST' || !empty( $_POST ) || get_option( 'gzipcompression' ) ) {
260
  wp_cache_debug( 'Not caching POST request.', 5 );
261
  $cache_this_page = false;
 
 
 
 
 
 
262
  } elseif ( $wp_cache_object_cache && !empty( $_GET ) ) {
263
  wp_cache_debug( 'Not caching GET request while object cache storage enabled.', 5 );
264
  $cache_this_page = false;
@@ -388,7 +402,7 @@ function wp_cache_get_ob(&$buffer) {
388
  $wp_cache_mfunc_enabled = 0;
389
 
390
  $new_cache = true;
391
- $wp_cache_meta = '';
392
 
393
  /* Mode paranoic, check for closing tags
394
  * we avoid caching incomplete files */
@@ -1122,21 +1136,19 @@ function wp_cache_post_id_gc( $siteurl, $post_id, $all = 'all' ) {
1122
  $permalink = trailingslashit( str_replace( get_option( 'home' ), '', get_permalink( $post_id ) ) );
1123
  $dir = get_current_url_supercache_dir( $post_id );
1124
  wp_cache_debug( "wp_cache_post_id_gc post_id: $post_id " . get_permalink( $post_id ) . " clearing cache in $dir.", 4 );
1125
- if ( $all == 'all' ) {
1126
  prune_super_cache( $dir, true, true );
1127
  do_action( 'gc_cache', 'prune', $permalink );
1128
  @rmdir( $dir );
 
 
 
 
1129
  } else {
1130
  wp_cache_debug( "wp_cache_post_id_gc clearing cached index files in $dir.", 4 );
1131
  prune_super_cache( $dir, true, true );
1132
  do_action( 'gc_cache', 'prune', $permalink );
1133
  }
1134
- wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$dir}/page/.", 4 );
1135
- prune_super_cache( $dir . '/page/', true );
1136
- $supercache_home = get_supercache_dir();
1137
- wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$supercache_home}/page/.", 4 );
1138
- prune_super_cache( $supercache_home . '/page/', true );
1139
- do_action( 'gc_cache', 'prune', '/page/' );
1140
  }
1141
 
1142
  function wp_cache_post_change( $post_id ) {
@@ -1171,39 +1183,43 @@ function wp_cache_post_change( $post_id ) {
1171
  $all = true;
1172
  }
1173
 
 
 
 
 
 
1174
  if ( $wp_cache_object_cache )
1175
  reset_oc_version();
1176
 
1177
  $permalink = trailingslashit( str_replace( get_option( 'siteurl' ), '', get_permalink( $post_id ) ) );
1178
- if( $super_cache_enabled ) {
1179
- $dir = get_supercache_dir();
1180
- $siteurl = trailingslashit( strtolower( preg_replace( '/:.*$/', '', str_replace( 'https://', '', str_replace( 'http://', '', get_option( 'home' ) ) ) ) ) );
1181
- // make sure the front page has a rebuild file
1182
- wp_cache_post_id_gc( $siteurl, $post_id );
1183
- if ( $all == true ) {
1184
- wp_cache_debug( "Post change: supercache enabled: deleting cache files in " . $cache_path . 'supercache/' . $siteurl, 4 );
1185
- $files_to_check = get_all_supercache_filenames( $dir );
1186
- foreach( $files_to_check as $cache_file ) {
1187
- wp_cache_debug( "Post change: deleting cache file: " . $dir . $cache_file, 4 );
1188
- prune_super_cache( $dir . $cache_file, true, true );
1189
- }
1190
- do_action( 'gc_cache', 'prune', 'homepage' );
1191
- } else {
1192
- wp_cache_debug( "wp_cache_post_change: not deleting all pages.", 4 );
1193
  }
1194
- if( $all == true && get_option( 'show_on_front' ) == 'page' ) {
1195
- wp_cache_debug( "Post change: deleting page_on_front and page_for_posts pages.", 4 );
1196
- wp_cache_debug( "Post change: page_on_front " . get_option( 'page_on_front' ), 4 );
1197
- wp_cache_post_id_gc( $siteurl, get_option( 'page_on_front' ), 'single' );
1198
- $permalink = trailingslashit( str_replace( get_option( 'home' ), '', get_permalink( get_option( 'page_for_posts' ) ) ) );
1199
- $files_to_check = get_all_supercache_filenames( $dir . $permalink );
1200
- foreach( $files_to_check as $cache_file ) {
1201
- prune_super_cache( $dir . $permalink . $cache_file, true, true );
1202
- }
1203
- do_action( 'gc_cache', 'prune', $permalink );
1204
- } else {
1205
- wp_cache_debug( "wp_cache_post_change: not deleting front static page.", 4 );
1206
  }
 
 
 
1207
  }
1208
 
1209
  wp_cache_debug( "wp_cache_post_change: checking {$blog_cache_dir}meta/", 4 );
121
 
122
  function wp_cache_get_response_headers() {
123
  if(function_exists('apache_response_headers')) {
 
124
  $headers = apache_response_headers();
125
+ if ( empty( $headers ) ) {
126
+ flush();
127
+ $headers = apache_response_headers();
128
+ }
129
  } else if(function_exists('headers_list')) {
130
  $headers = array();
131
  foreach(headers_list() as $hdr) {
132
+ $header_parts = explode( ':', $hdr, 2 );
133
+ $header_name = isset( $header_parts[0] ) ? trim( $header_parts[0] ) : '';
134
+ $header_value = isset( $header_parts[1] ) ? trim( $header_parts[1] ) : '';
135
+
136
  $headers[$header_name] = $header_value;
137
  }
138
  } else
161
  function wp_cache_mutex_init() {
162
  global $mutex, $wp_cache_mutex_disabled, $use_flock, $blog_cache_dir, $mutex_filename, $sem_id;
163
 
164
+ if ( defined( 'WPSC_DISABLE_LOCKING' ) || ( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) )
165
  return true;
166
 
167
  if( !is_bool( $use_flock ) ) {
178
  $mutex = @fopen( $blog_cache_dir . $mutex_filename, 'w' );
179
  } else {
180
  wp_cache_debug( "Created mutex lock on semaphore: {$sem_id}", 5 );
181
+ $mutex = @sem_get( $sem_id, 1, 0666, 1 );
182
  }
183
  }
184
 
185
  function wp_cache_writers_entry() {
186
  global $mutex, $wp_cache_mutex_disabled, $use_flock;
187
 
188
+ if ( defined( 'WPSC_DISABLE_LOCKING' ) || ( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) )
189
  return true;
190
 
191
  if( !$mutex ) {
198
  flock($mutex, LOCK_EX);
199
  } else {
200
  wp_cache_debug( "grabbing lock using sem_acquire()", 5 );
201
+ @sem_acquire($mutex);
202
  }
203
 
204
  return true;
207
  function wp_cache_writers_exit() {
208
  global $mutex, $wp_cache_mutex_disabled, $use_flock;
209
 
210
+ if ( defined( 'WPSC_DISABLE_LOCKING' ) || ( isset( $wp_cache_mutex_disabled ) && $wp_cache_mutex_disabled ) )
211
  return true;
212
 
213
  if( !$mutex ) {
217
 
218
  if ( $use_flock ) {
219
  wp_cache_debug( "releasing lock using flock()", 5 );
220
+ flock( $mutex, LOCK_UN );
221
  } else {
222
+ wp_cache_debug( "releasing lock using sem_release() and sem_remove()", 5 );
223
+ @sem_release( $mutex );
224
+ if ( defined( "WPSC_REMOVE_SEMAPHORE" ) )
225
+ @sem_remove( $mutex );
226
  }
227
  }
228
 
267
  } elseif ( $_SERVER["REQUEST_METHOD"] == 'POST' || !empty( $_POST ) || get_option( 'gzipcompression' ) ) {
268
  wp_cache_debug( 'Not caching POST request.', 5 );
269
  $cache_this_page = false;
270
+ } elseif ( $_SERVER["REQUEST_METHOD"] == 'PUT' ) {
271
+ wp_cache_debug( 'Not caching PUT request.', 5 );
272
+ $cache_this_page = false;
273
+ } elseif ( $_SERVER["REQUEST_METHOD"] == 'DELETE' ) {
274
+ wp_cache_debug( 'Not caching DELETE request.', 5 );
275
+ $cache_this_page = false;
276
  } elseif ( $wp_cache_object_cache && !empty( $_GET ) ) {
277
  wp_cache_debug( 'Not caching GET request while object cache storage enabled.', 5 );
278
  $cache_this_page = false;
402
  $wp_cache_mfunc_enabled = 0;
403
 
404
  $new_cache = true;
405
+ $wp_cache_meta = array();
406
 
407
  /* Mode paranoic, check for closing tags
408
  * we avoid caching incomplete files */
1136
  $permalink = trailingslashit( str_replace( get_option( 'home' ), '', get_permalink( $post_id ) ) );
1137
  $dir = get_current_url_supercache_dir( $post_id );
1138
  wp_cache_debug( "wp_cache_post_id_gc post_id: $post_id " . get_permalink( $post_id ) . " clearing cache in $dir.", 4 );
1139
+ if ( $all ) {
1140
  prune_super_cache( $dir, true, true );
1141
  do_action( 'gc_cache', 'prune', $permalink );
1142
  @rmdir( $dir );
1143
+ wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$supercache_home}page/." );
1144
+ $supercache_home = get_supercache_dir();
1145
+ prune_super_cache( $supercache_home . 'page/', true );
1146
+ do_action( 'gc_cache', 'prune', 'page/' );
1147
  } else {
1148
  wp_cache_debug( "wp_cache_post_id_gc clearing cached index files in $dir.", 4 );
1149
  prune_super_cache( $dir, true, true );
1150
  do_action( 'gc_cache', 'prune', $permalink );
1151
  }
 
 
 
 
 
 
1152
  }
1153
 
1154
  function wp_cache_post_change( $post_id ) {
1183
  $all = true;
1184
  }
1185
 
1186
+ $all_backup = $all;
1187
+ $all = apply_filters( 'wpsc_delete_related_pages_on_edit', $all ); // return 0 to disable deleting homepage and other pages.
1188
+ if ( $all != $all_backup )
1189
+ wp_cache_debug( 'wp_cache_post_change: $all changed by wpsc_delete_related_pages_on_edit filter: ' . intval( $all ) );
1190
+
1191
  if ( $wp_cache_object_cache )
1192
  reset_oc_version();
1193
 
1194
  $permalink = trailingslashit( str_replace( get_option( 'siteurl' ), '', get_permalink( $post_id ) ) );
1195
+
1196
+ // Delete supercache files whenever a post change event occurs, even if supercache is currently disabled.
1197
+ $dir = get_supercache_dir();
1198
+ $siteurl = trailingslashit( strtolower( preg_replace( '/:.*$/', '', str_replace( 'https://', '', str_replace( 'http://', '', get_option( 'home' ) ) ) ) ) );
1199
+ // make sure the front page has a rebuild file
1200
+ wp_cache_post_id_gc( $siteurl, $post_id, $all );
1201
+ if ( $all == true ) {
1202
+ wp_cache_debug( "Post change: supercache enabled: deleting cache files in " . $cache_path . 'supercache/' . $siteurl, 4 );
1203
+ $files_to_check = get_all_supercache_filenames( $dir );
1204
+ foreach( $files_to_check as $cache_file ) {
1205
+ wp_cache_debug( "Post change: deleting cache file: " . $dir . $cache_file, 4 );
1206
+ prune_super_cache( $dir . $cache_file, true, true );
 
 
 
1207
  }
1208
+ do_action( 'gc_cache', 'prune', 'homepage' );
1209
+ } else {
1210
+ wp_cache_debug( "wp_cache_post_change: not deleting all pages.", 4 );
1211
+ }
1212
+ if( $all == true && get_option( 'show_on_front' ) == 'page' ) {
1213
+ wp_cache_debug( "Post change: deleting page_on_front and page_for_posts pages.", 4 );
1214
+ wp_cache_debug( "Post change: page_on_front " . get_option( 'page_on_front' ), 4 );
1215
+ $permalink = trailingslashit( str_replace( get_option( 'home' ), '', get_permalink( get_option( 'page_for_posts' ) ) ) );
1216
+ $files_to_check = get_all_supercache_filenames( $dir . $permalink );
1217
+ foreach( $files_to_check as $cache_file ) {
1218
+ prune_super_cache( $dir . $permalink . $cache_file, true, true );
 
1219
  }
1220
+ do_action( 'gc_cache', 'prune', $permalink );
1221
+ } else {
1222
+ wp_cache_debug( "wp_cache_post_change: not deleting front static page.", 4 );
1223
  }
1224
 
1225
  wp_cache_debug( "wp_cache_post_change: checking {$blog_cache_dir}meta/", 4 );
wp-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Super Cache
4
  Plugin URI: https://wordpress.org/plugins/wp-super-cache/
5
  Description: Very fast caching plugin for WordPress.
6
- Version: 1.4.8
7
  Author: Automattic
8
  Author URI: https://automattic.com/
9
  License: GPL2+
@@ -494,12 +494,13 @@ function wp_cache_manager_updates() {
494
  }
495
 
496
  if( isset( $_POST[ 'action' ] ) && $_POST[ 'action' ] == 'scupdates' ) {
497
- if( isset( $_POST[ 'wp_cache_location' ] ) && $_POST[ 'wp_cache_location' ] != '' ) {
 
498
  $dir = realpath( trailingslashit( dirname( $_POST[ 'wp_cache_location' ] ) ) );
499
  if ( $dir == false )
500
  $dir = WP_CONTENT_DIR . '/cache/';
501
  else
502
- $dir = trailingslashit( $dir ) . wpsc_deep_replace( array( '..', '\\' ), basename( $_POST[ 'wp_cache_location' ] ) );
503
  $new_cache_path = $dir;
504
  } else {
505
  $new_cache_path = WP_CONTENT_DIR . '/cache/';
@@ -567,19 +568,19 @@ function wp_cache_manager_updates() {
567
  }
568
  wp_cache_replace_line('^ *\$wp_supercache_cache_list', "\$wp_supercache_cache_list = " . $wp_supercache_cache_list . ";", $wp_cache_config_file);
569
 
570
- if ( isset( $_POST[ 'wp_cache_status' ] ) ) {
571
  if ( $_POST[ 'wp_cache_status' ] == 'all' )
572
  wp_cache_enable();
573
 
574
  if ( isset( $_POST[ 'super_cache_enabled' ] ) ) {
575
  if ( $_POST[ 'super_cache_enabled' ] == 0 ) {
576
- wp_cache_enable();
577
  wp_super_cache_disable();
578
  }
579
  if( $_POST[ 'super_cache_enabled' ] == 1 ) {
580
  $wp_cache_mod_rewrite = 1; // we need this because supercached files can be served by PHP too.
581
  } else {
582
- $wp_cache_mod_rewrite = 0;
583
  }
584
  wp_cache_replace_line('^ *\$wp_cache_mod_rewrite', '$wp_cache_mod_rewrite = ' . $wp_cache_mod_rewrite . ";", $wp_cache_config_file);
585
  }
@@ -1003,7 +1004,8 @@ table.wpsc-settings-table {
1003
  <td>
1004
  <fieldset>
1005
  <legend class="hidden">Caching</legend>
1006
- <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 />
 
1007
  <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 />
1008
  <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 />
1009
  <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 {
1025
  <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 />
1026
  <?php }
1027
  }
 
 
 
 
1028
  $disable_304 = true;
1029
  if ( 0 == $wp_cache_mod_rewrite )
1030
  $disable_304 = false;
@@ -1037,10 +1043,9 @@ table.wpsc-settings-table {
1037
  } else {
1038
  ?><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
1039
  }
1040
- ?><label><input type='checkbox' name='wp_cache_not_logged_in' <?php if( $wp_cache_not_logged_in ) echo "checked"; ?> value='1'> <?php _e( 'Don&#8217;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 />
1041
  <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&#8217;t cache pages with GET parameters. (?x=y at the end of a url)', 'wp-super-cache' ); ?></label><br />
1042
  <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&#8217;re served supercached static files.', 'wp-super-cache' ); ?></label><br />
1043
- <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 />
1044
  <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&#8217;s footer)', 'wp-super-cache' ), 'https://twitter.com/#!/HibbsLupusTrust/statuses/136429993059291136' ); ?></label><br />
1045
  </legend>
1046
  </fieldset>
@@ -1062,7 +1067,7 @@ table.wpsc-settings-table {
1062
  <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 />
1063
  <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 />
1064
  <?php if( false == defined( 'WPSC_DISABLE_LOCKING' ) ) { ?>
1065
- <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&#8217;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 />
1066
  <?php } ?>
1067
  <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 />
1068
  <?php if ( $_wp_using_ext_object_cache ) {
@@ -1145,8 +1150,6 @@ table.wpsc-settings-table {
1145
  <fieldset>
1146
  <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 />
1147
  <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 />
1148
- <em><?php _e( 'Note: enables PHP caching, cache rebuild, and mobile support', 'wp-super-cache' ); ?></em><br />
1149
- </legend>
1150
  </fieldset>
1151
  </td>
1152
  </tr>
@@ -1251,10 +1254,10 @@ table.wpsc-settings-table {
1251
  wp_nonce_field('wp-cache');
1252
  echo "</form>\n";
1253
 
1254
- if ( ( defined( 'VHOST' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && wpsupercache_site_admin() ) {
1255
  echo '<form name="wp_cache_content_delete" action="#listfiles" method="post">';
1256
  echo '<input type="hidden" name="wp_delete_all_cache" />';
1257
- 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' ) . '" />';
1258
  wp_nonce_field('wp-cache');
1259
  echo "</form><br />\n";
1260
  }
@@ -1263,7 +1266,6 @@ table.wpsc-settings-table {
1263
  <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>
1264
  <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>
1265
  <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>
1266
- <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>
1267
  <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>
1268
  <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>
1269
  </ol>
@@ -1704,7 +1706,11 @@ function wp_cache_edit_max_time () {
1704
  } elseif ( $valid_nonce ) { // clock
1705
  wp_clear_scheduled_hook( 'wp_cache_gc' );
1706
  $cache_schedule_type = 'time';
1707
- if ( !isset( $_POST[ 'cache_scheduled_time' ] ) || $_POST[ 'cache_scheduled_time' ] == '' )
 
 
 
 
1708
  $_POST[ 'cache_scheduled_time' ] = '00:00';
1709
  $cache_scheduled_time = $_POST[ 'cache_scheduled_time' ];
1710
  $schedules = wp_get_schedules();
@@ -1753,12 +1759,12 @@ function wp_cache_edit_max_time () {
1753
  echo '<input name="action" value="expirytime" type="hidden" />';
1754
  echo '<table class="form-table">';
1755
  echo '<tr><td><label for="wp_max_time"><strong>' . __( 'Cache Timeout', 'wp-super-cache' ) . '</strong></label></td>';
1756
- 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";
1757
  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";
1758
  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>';
1759
- 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>";
1760
  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>';
1761
- 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>";
1762
  $schedules = wp_get_schedules();
1763
  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>";
1764
  foreach( $schedules as $desc => $details ) {
@@ -2688,10 +2694,10 @@ function wp_cache_delete_buttons() {
2688
  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>';
2689
  wp_nonce_field('wp-cache');
2690
  echo "</form>\n";
2691
- if ( ( defined( 'VHOST' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && wpsupercache_site_admin() ) {
2692
  echo '<form name="wp_cache_content_delete" action="#listfiles" method="post">';
2693
  echo '<input type="hidden" name="wp_delete_all_cache" />';
2694
- 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' ) . '" />';
2695
  wp_nonce_field('wp-cache');
2696
  echo "</form>\n";
2697
  }
@@ -2789,7 +2795,7 @@ function wp_cache_clean_legacy_files( $dir, $file_prefix ) {
2789
  @unlink( $dir . 'meta/' . str_replace( '.html', '.meta', $file ) );
2790
  } else {
2791
  $meta = json_decode( wp_cache_get_legacy_cache( $dir . 'meta/' . $file ), true );
2792
- if ( ( defined( 'VHOST' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && $meta[ 'blog_id' ] != $wpdb->blogid )
2793
  continue;
2794
  @unlink( $dir . $file);
2795
  @unlink( $dir . 'meta/' . $file);
3
  Plugin Name: WP Super Cache
4
  Plugin URI: https://wordpress.org/plugins/wp-super-cache/
5
  Description: Very fast caching plugin for WordPress.
6
+ Version: 1.4.9
7
  Author: Automattic
8
  Author URI: https://automattic.com/
9
  License: GPL2+
494
  }
495
 
496
  if( isset( $_POST[ 'action' ] ) && $_POST[ 'action' ] == 'scupdates' ) {
497
+ if( isset( $_POST[ 'wp_cache_location' ] ) && $_POST[ 'wp_cache_location' ] != '' &&
498
+ ( !isset( $cache_path ) || $_POST[ 'wp_cache_location' ] != $cache_path ) ) {
499
  $dir = realpath( trailingslashit( dirname( $_POST[ 'wp_cache_location' ] ) ) );
500
  if ( $dir == false )
501
  $dir = WP_CONTENT_DIR . '/cache/';
502
  else
503
+ $dir = trailingslashit( $dir ) . trailingslashit(wpsc_deep_replace( array( '..', '\\' ), basename( $_POST[ 'wp_cache_location' ] ) ) );
504
  $new_cache_path = $dir;
505
  } else {
506
  $new_cache_path = WP_CONTENT_DIR . '/cache/';
568
  }
569
  wp_cache_replace_line('^ *\$wp_supercache_cache_list', "\$wp_supercache_cache_list = " . $wp_supercache_cache_list . ";", $wp_cache_config_file);
570
 
571
+ if ( isset( $_POST[ 'wp_cache_status' ] ) && 'all' == $_POST[ 'wp_cache_status' ] ) {
572
  if ( $_POST[ 'wp_cache_status' ] == 'all' )
573
  wp_cache_enable();
574
 
575
  if ( isset( $_POST[ 'super_cache_enabled' ] ) ) {
576
  if ( $_POST[ 'super_cache_enabled' ] == 0 ) {
577
+ wp_cache_enable(); // logged in cache
578
  wp_super_cache_disable();
579
  }
580
  if( $_POST[ 'super_cache_enabled' ] == 1 ) {
581
  $wp_cache_mod_rewrite = 1; // we need this because supercached files can be served by PHP too.
582
  } else {
583
+ $wp_cache_mod_rewrite = 0; // cache files served by PHP
584
  }
585
  wp_cache_replace_line('^ *\$wp_cache_mod_rewrite', '$wp_cache_mod_rewrite = ' . $wp_cache_mod_rewrite . ";", $wp_cache_config_file);
586
  }
1004
  <td>
1005
  <fieldset>
1006
  <legend class="hidden">Caching</legend>
1007
+ <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 />
1008
+ <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 />
1009
  <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 />
1010
  <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 />
1011
  <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 />
1027
  <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 />
1028
  <?php }
1029
  }
1030
+ ?>
1031
+ <label><input type='checkbox' name='wp_cache_not_logged_in' <?php if ( $wp_cache_not_logged_in ) echo "checked"; ?> value='1'> <?php _e( 'Don&#8217;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 />
1032
+ <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 />
1033
+ <?php
1034
  $disable_304 = true;
1035
  if ( 0 == $wp_cache_mod_rewrite )
1036
  $disable_304 = false;
1043
  } else {
1044
  ?><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
1045
  }
1046
+ ?>
1047
  <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&#8217;t cache pages with GET parameters. (?x=y at the end of a url)', 'wp-super-cache' ); ?></label><br />
1048
  <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&#8217;re served supercached static files.', 'wp-super-cache' ); ?></label><br />
 
1049
  <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&#8217;s footer)', 'wp-super-cache' ), 'https://twitter.com/#!/HibbsLupusTrust/statuses/136429993059291136' ); ?></label><br />
1050
  </legend>
1051
  </fieldset>
1067
  <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 />
1068
  <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 />
1069
  <?php if( false == defined( 'WPSC_DISABLE_LOCKING' ) ) { ?>
1070
+ <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 />
1071
  <?php } ?>
1072
  <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 />
1073
  <?php if ( $_wp_using_ext_object_cache ) {
1150
  <fieldset>
1151
  <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 />
1152
  <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 />
 
 
1153
  </fieldset>
1154
  </td>
1155
  </tr>
1254
  wp_nonce_field('wp-cache');
1255
  echo "</form>\n";
1256
 
1257
+ if ( ( defined( 'VHOST' ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'SUNRISE' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && wpsupercache_site_admin() ) {
1258
  echo '<form name="wp_cache_content_delete" action="#listfiles" method="post">';
1259
  echo '<input type="hidden" name="wp_delete_all_cache" />';
1260
+ 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>';
1261
  wp_nonce_field('wp-cache');
1262
  echo "</form><br />\n";
1263
  }
1266
  <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>
1267
  <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>
1268
  <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>
 
1269
  <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>
1270
  <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>
1271
  </ol>
1706
  } elseif ( $valid_nonce ) { // clock
1707
  wp_clear_scheduled_hook( 'wp_cache_gc' );
1708
  $cache_schedule_type = 'time';
1709
+ if ( !isset( $_POST[ 'cache_scheduled_time' ] ) ||
1710
+ $_POST[ 'cache_scheduled_time' ] == '' ||
1711
+ 5 != strlen( $_POST[ 'cache_scheduled_time' ] ) ||
1712
+ ":" != substr( $_POST[ 'cache_scheduled_time' ], 2, 1 )
1713
+ )
1714
  $_POST[ 'cache_scheduled_time' ] = '00:00';
1715
  $cache_scheduled_time = $_POST[ 'cache_scheduled_time' ];
1716
  $schedules = wp_get_schedules();
1759
  echo '<input name="action" value="expirytime" type="hidden" />';
1760
  echo '<table class="form-table">';
1761
  echo '<tr><td><label for="wp_max_time"><strong>' . __( 'Cache Timeout', 'wp-super-cache' ) . '</strong></label></td>';
1762
+ 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";
1763
  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";
1764
  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>';
1765
+ 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>";
1766
  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>';
1767
+ 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>";
1768
  $schedules = wp_get_schedules();
1769
  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>";
1770
  foreach( $schedules as $desc => $details ) {
2694
  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>';
2695
  wp_nonce_field('wp-cache');
2696
  echo "</form>\n";
2697
+ if ( ( defined( 'VHOST' ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'SUNRISE' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && wpsupercache_site_admin() ) {
2698
  echo '<form name="wp_cache_content_delete" action="#listfiles" method="post">';
2699
  echo '<input type="hidden" name="wp_delete_all_cache" />';
2700
+ 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>';
2701
  wp_nonce_field('wp-cache');
2702
  echo "</form>\n";
2703
  }
2795
  @unlink( $dir . 'meta/' . str_replace( '.html', '.meta', $file ) );
2796
  } else {
2797
  $meta = json_decode( wp_cache_get_legacy_cache( $dir . 'meta/' . $file ), true );
2798
+ if ( ( defined( 'VHOST' ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'SUNRISE' ) || ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) ) && $meta[ 'blog_id' ] != $wpdb->blogid )
2799
  continue;
2800
  @unlink( $dir . $file);
2801
  @unlink( $dir . 'meta/' . $file);
wp-super-cache.pot CHANGED
@@ -1,18 +1,18 @@
1
- # Copyright (C) 2016 WP Super Cache
2
  # This file is distributed under the same license as the WP Super Cache package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP Super Cache 1.4.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-super-cache\n"
7
- "POT-Creation-Date: 2016-03-07 13:27:41+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: ossdl-cdn.php:151
16
  msgid ""
17
  "Your website probably uses lots of static files. Image, Javascript and CSS "
18
  "files are usually static files that could just as easily be served from "
@@ -24,57 +24,57 @@ msgid ""
24
  "+does+Origin+Pull+work%3F\" target=\"_blank\">origin pull</a>."
25
  msgstr ""
26
 
27
- #: ossdl-cdn.php:152
28
  msgid ""
29
  "<strong style=\"color: red\">WARNING:</strong> Test some static urls e.g., "
30
  "%s to ensure your CDN service is fully working before saving changes."
31
  msgstr ""
32
 
33
- #: ossdl-cdn.php:153
34
  msgid "You can define different CDN URLs for each site on a multsite network."
35
  msgstr ""
36
 
37
- #: ossdl-cdn.php:161
38
  msgid "Enable CDN Support"
39
  msgstr ""
40
 
41
- #: ossdl-cdn.php:164
42
  msgid "Off-site URL"
43
  msgstr ""
44
 
45
- #: ossdl-cdn.php:167
46
  msgid ""
47
  "The new URL to be used in place of %1$s for rewriting. No trailing <code>/</"
48
  "code> please.<br />Example: <code>%2$s</code>."
49
  msgstr ""
50
 
51
- #: ossdl-cdn.php:171
52
  msgid "Include directories"
53
  msgstr ""
54
 
55
- #: ossdl-cdn.php:174
56
  msgid ""
57
  "Directories to include in static file matching. Use a comma as the "
58
  "delimiter. Default is <code>wp-content, wp-includes</code>, which will be "
59
  "enforced if this field is left empty."
60
  msgstr ""
61
 
62
- #: ossdl-cdn.php:178
63
  msgid "Exclude if substring"
64
  msgstr ""
65
 
66
- #: ossdl-cdn.php:181
67
  msgid ""
68
  "Excludes something from being rewritten if one of the above strings is found "
69
  "in the match. Use a comma as the delimiter like this, <code>.php, .flv, .do</"
70
  "code>, and always include <code>.php</code> (default)."
71
  msgstr ""
72
 
73
- #: ossdl-cdn.php:185
74
  msgid "Additional CNAMES"
75
  msgstr ""
76
 
77
- #: ossdl-cdn.php:188
78
  msgid ""
79
  "These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will "
80
  "be used in place of %1$s for rewriting (in addition to the off-site URL "
@@ -83,15 +83,15 @@ msgid ""
83
  "be configured on your CDN.<br />Example: %2$s"
84
  msgstr ""
85
 
86
- #: ossdl-cdn.php:192
87
  msgid "Skip https URLs to avoid \"mixed content\" errors"
88
  msgstr ""
89
 
90
- #: ossdl-cdn.php:196
91
  msgid "Save Changes"
92
  msgstr ""
93
 
94
- #: ossdl-cdn.php:198
95
  msgid ""
96
  "CDN functionality provided by <a href=\"http://wordpress.org/plugins/ossdl-"
97
  "cdn-off-linker/\">OSSDL CDN Off Linker</a> by <a href=\"http://mark.ossdl.de/"
@@ -108,13 +108,13 @@ msgstr ""
108
 
109
  #: plugins/awaitingmoderation.php:34 plugins/badbehaviour.php:65
110
  #: plugins/domain-mapping.php:75 plugins/jetpack.php:31
111
- #: plugins/searchengine.php:69 plugins/wptouch.php:22 wp-cache.php:1500
112
  msgid "Enabled"
113
  msgstr ""
114
 
115
  #: plugins/awaitingmoderation.php:35 plugins/badbehaviour.php:66
116
  #: plugins/domain-mapping.php:76 plugins/jetpack.php:32
117
- #: plugins/searchengine.php:70 plugins/wptouch.php:23 wp-cache.php:1500
118
  msgid "Disabled"
119
  msgstr ""
120
 
@@ -126,8 +126,8 @@ msgstr ""
126
 
127
  #: plugins/awaitingmoderation.php:40 plugins/badbehaviour.php:71
128
  #: plugins/domain-mapping.php:81 plugins/jetpack.php:37
129
- #: plugins/searchengine.php:75 plugins/wptouch.php:28 wp-cache.php:1973
130
- #: wp-cache.php:1975
131
  msgid "enabled"
132
  msgstr ""
133
 
@@ -166,7 +166,7 @@ msgstr ""
166
  msgid "Bad Behavior support is now %s"
167
  msgstr ""
168
 
169
- #: plugins/badbehaviour.php:83 wp-cache.php:1593 wp-cache.php:1598
170
  msgid "Warning!"
171
  msgstr ""
172
 
@@ -216,11 +216,11 @@ msgstr ""
216
  msgid "Cached"
217
  msgstr ""
218
 
219
- #: plugins/multisite.php:31 wp-cache.php:1513
220
  msgid "Enable"
221
  msgstr ""
222
 
223
- #: plugins/multisite.php:33 plugins/searchengine.php:61 wp-cache.php:1513
224
  msgid "Disable"
225
  msgstr ""
226
 
@@ -262,17 +262,17 @@ msgid ""
262
  "the WPTouch helper plugin."
263
  msgstr ""
264
 
265
- #: wp-cache-phase2.php:1334
266
  msgid "Cache expiry cron job failed. Job will run again in 10 seconds."
267
  msgstr ""
268
 
269
- #: wp-cache-phase2.php:1338
270
  msgid ""
271
  "Cache expiry cron job took more than 30 seconds. You should probably run the "
272
  "garbage collector more often."
273
  msgstr ""
274
 
275
- #: wp-cache-phase2.php:1347
276
  msgid "[%1$s] WP Super Cache GC Report"
277
  msgstr ""
278
 
@@ -420,7 +420,7 @@ msgid ""
420
  "a regular basis. Use <a href=\"#expirytime\">this form</a> to enable it."
421
  msgstr ""
422
 
423
- #: wp-cache.php:309 wp-cache.php:337 wp-cache.php:409 wp-cache.php:2165
424
  msgid "Dismiss"
425
  msgstr ""
426
 
@@ -672,217 +672,219 @@ msgid ""
672
  "your host administrator."
673
  msgstr ""
674
 
675
- #: wp-cache.php:1002 wp-cache.php:1143
676
  msgid "Caching"
677
  msgstr ""
678
 
679
- #: wp-cache.php:1006
680
- msgid "Cache hits to this website for quick access."
681
  msgstr ""
682
 
683
- #: wp-cache.php:1006 wp-cache.php:1008 wp-cache.php:1024 wp-cache.php:1033
684
- #: wp-cache.php:1040 wp-cache.php:1043 wp-cache.php:1061 wp-cache.php:1146
685
  msgid "Recommended"
686
  msgstr ""
687
 
688
- #: wp-cache.php:1007
689
- msgid "Use mod_rewrite to serve cache files."
690
  msgstr ""
691
 
692
  #: wp-cache.php:1008
693
- msgid "Use PHP to serve cache files."
694
  msgstr ""
695
 
696
  #: wp-cache.php:1009
697
- msgid "Legacy page caching."
698
  msgstr ""
699
 
700
  #: wp-cache.php:1010
 
 
 
 
701
  msgid ""
702
  "Mod_rewrite is fastest, PHP is almost as fast and easier to get working, "
703
  "while legacy caching is slower again, but more flexible and also easy to get "
704
  "working. New users should use PHP caching."
705
  msgstr ""
706
 
707
- #: wp-cache.php:1016
708
  msgid "Miscellaneous"
709
  msgstr ""
710
 
711
- #: wp-cache.php:1022
712
  msgid "Warning! Compression is disabled as gzencode() function was not found."
713
  msgstr ""
714
 
715
- #: wp-cache.php:1024
716
  msgid "Compress pages so they&#8217;re served more quickly to visitors."
717
  msgstr ""
718
 
719
- #: wp-cache.php:1025
720
  msgid ""
721
  "Compression is disabled by default because some hosts have problems with "
722
  "compressed files. Switching it on and off clears the cache."
723
  msgstr ""
724
 
725
- #: wp-cache.php:1033
 
 
 
 
 
 
 
 
 
 
 
 
726
  msgid ""
727
  "304 Not Modified browser caching. Indicate when a page has not been modified "
728
  "since it was last requested."
729
  msgstr ""
730
 
731
- #: wp-cache.php:1036
732
  msgid ""
733
  "Warning! 304 browser caching is only supported when mod_rewrite caching is "
734
  "not used."
735
  msgstr ""
736
 
737
- #: wp-cache.php:1038
738
  msgid ""
739
  "304 support is disabled by default because some hosts have had problems with "
740
  "the headers used in the past."
741
  msgstr ""
742
 
743
- #: wp-cache.php:1040
744
- msgid ""
745
- "Don&#8217;t cache pages for <acronym title=\"Logged in users and those that "
746
- "comment\">known users</acronym>."
747
- msgstr ""
748
-
749
- #: wp-cache.php:1041
750
  msgid "Don&#8217;t cache pages with GET parameters. (?x=y at the end of a url)"
751
  msgstr ""
752
 
753
- #: wp-cache.php:1042
754
  msgid ""
755
  "Make known users anonymous so they&#8217;re served supercached static files."
756
  msgstr ""
757
 
758
- #: wp-cache.php:1043
759
- msgid ""
760
- "Cache rebuild. Serve a supercache file to anonymous users while a new file "
761
- "is being generated."
762
- msgstr ""
763
-
764
- #: wp-cache.php:1044
765
  msgid ""
766
  "Proudly tell the world your server is <a href=\"%s\">Stephen Fry proof</a>! "
767
  "(places a message in your blog&#8217;s footer)"
768
  msgstr ""
769
 
770
- #: wp-cache.php:1050 wp-cache.php:1350 wp-cache.php:1982
771
  msgid "Advanced"
772
  msgstr ""
773
 
774
- #: wp-cache.php:1054
775
  msgid ""
776
  "Enable dynamic caching. Requires PHP or legacy caching. (See <a href="
777
  "\"http://wordpress.org/plugins/wp-super-cache/faq/\">FAQ</a> or wp-super-"
778
  "cache/plugins/dynamic-cache-test.php for example code.)"
779
  msgstr ""
780
 
781
- #: wp-cache.php:1055
782
  msgid ""
783
  "Mobile device support. (External plugin or theme required. See the <a href="
784
  "\"http://wordpress.org/plugins/wp-super-cache/faq/\">FAQ</a> for further "
785
  "details.)"
786
  msgstr ""
787
 
788
- #: wp-cache.php:1057
789
  msgid "Mobile Browsers"
790
  msgstr ""
791
 
792
- #: wp-cache.php:1057
793
  msgid "Mobile Prefixes"
794
  msgstr ""
795
 
796
- #: wp-cache.php:1059
797
  msgid ""
798
  "Remove UTF8/blog charset support from .htaccess file. Only necessary if you "
799
  "see odd characters or punctuation looks incorrect. Requires rewrite rules "
800
  "update."
801
  msgstr ""
802
 
803
- #: wp-cache.php:1060
804
  msgid "Clear all cache files when a post or page is published or updated."
805
  msgstr ""
806
 
807
- #: wp-cache.php:1061
808
  msgid "Extra homepage checks. (Very occasionally stops homepage caching)"
809
  msgstr ""
810
 
811
- #: wp-cache.php:1062
812
  msgid "Only refresh current page when comments made."
813
  msgstr ""
814
 
815
- #: wp-cache.php:1063
816
  msgid "List the newest cached pages on this page."
817
  msgstr ""
818
 
819
- #: wp-cache.php:1065
820
  msgid ""
821
- "Coarse file locking. You probably don&#8217;t need this but it may help if "
822
- "your server is underpowered. Warning! <em>May cause your server to lock up "
823
- "in very rare cases!</em>"
824
  msgstr ""
825
 
826
- #: wp-cache.php:1067
827
  msgid ""
828
  "Late init. Display cached files after WordPress has loaded. Most useful in "
829
  "legacy mode."
830
  msgstr ""
831
 
832
- #: wp-cache.php:1069
833
  msgid "Use object cache to store cached files."
834
  msgstr ""
835
 
836
- #: wp-cache.php:1069
837
  msgid "(Experimental)"
838
  msgstr ""
839
 
840
- #: wp-cache.php:1071
841
  msgid "<strong>DO NOT CACHE PAGE</strong> secret key: <a href=\"%s\">%s</a>"
842
  msgstr ""
843
 
844
- #: wp-cache.php:1076
845
  msgid "Cache Location"
846
  msgstr ""
847
 
848
- #: wp-cache.php:1081
849
  msgid ""
850
  "Change the location of your cache files. The default is WP_CONTENT_DIR . /"
851
  "cache/ which translates to %s."
852
  msgstr ""
853
 
854
- #: wp-cache.php:1082
855
  msgid "You must give the full path to the directory."
856
  msgstr ""
857
 
858
- #: wp-cache.php:1083
859
  msgid ""
860
  "If the directory does not exist, it will be created. Please make sure your "
861
  "web server user has write access to the parent directory. The parent "
862
  "directory must exist."
863
  msgstr ""
864
 
865
- #: wp-cache.php:1084
866
  msgid ""
867
  "If the new cache directory does not exist, it will be created and the "
868
  "contents of the old cache directory will be moved there. Otherwise, the old "
869
  "cache directory will be left where it is."
870
  msgstr ""
871
 
872
- #: wp-cache.php:1085
873
  msgid ""
874
  "Submit a blank entry to set it to the default directory, WP_CONTENT_DIR . /"
875
  "cache/."
876
  msgstr ""
877
 
878
- #: wp-cache.php:1087
879
  msgid ""
880
  "The plugin detected a bare directory index in your cache directory, which "
881
  "would let visitors see your cache files directly and might expose private "
882
  "posts."
883
  msgstr ""
884
 
885
- #: wp-cache.php:1089
886
  msgid ""
887
  "You are using mod_rewrite to serve cache files so the plugin has added "
888
  "<q>Options -Indexes</q> to the .htaccess file in the cache directory to "
@@ -891,32 +893,32 @@ msgid ""
891
  "mode and move the cache outside of the web root."
892
  msgstr ""
893
 
894
- #: wp-cache.php:1091
895
  msgid ""
896
  "index.html files have been added in key directories, but unless directory "
897
  "indexes are disabled, it is probably better to store the cache files outside "
898
  "of the web root of %s"
899
  msgstr ""
900
 
901
- #: wp-cache.php:1098
902
  msgid ""
903
  "Since you are using mod_rewrite to serve cache files, you must choose a "
904
  "directory in your web root which is <q>%s</q> and update the mod_rewrite "
905
  "rules in the .htaccess file."
906
  msgstr ""
907
 
908
- #: wp-cache.php:1106
909
  msgid "Note:"
910
  msgstr ""
911
 
912
- #: wp-cache.php:1108
913
  msgid ""
914
  "Uninstall this plugin on the plugins page. It will automatically clean up "
915
  "after itself. If manual intervention is required, then simple instructions "
916
  "are provided."
917
  msgstr ""
918
 
919
- #: wp-cache.php:1109
920
  msgid ""
921
  "If uninstalling this plugin, make sure the directory <em>%s</em> is "
922
  "writeable by the webserver so the files <em>advanced-cache.php</em> and "
@@ -924,14 +926,14 @@ msgid ""
924
  "files are writeable is probably a good idea!)"
925
  msgstr ""
926
 
927
- #: wp-cache.php:1110
928
  msgid ""
929
  "Please see the <a href=\"%1$s/wp-super-cache/readme.txt\">readme.txt</a> for "
930
  "instructions on uninstalling this script. Look for the heading, \"How to "
931
  "uninstall WP Super Cache\"."
932
  msgstr ""
933
 
934
- #: wp-cache.php:1111
935
  msgid ""
936
  "Need help? Check the <a href=\"%1$s\">Super Cache readme file</a>. It "
937
  "includes installation documentation, a FAQ and Troubleshooting tips. The <a "
@@ -939,27 +941,15 @@ msgid ""
939
  "have been answered."
940
  msgstr ""
941
 
942
- #: wp-cache.php:1114 wp-cache.php:1161
943
  msgid "Update Status"
944
  msgstr ""
945
 
946
- #: wp-cache.php:1121
947
  msgid "Accepted Filenames &amp; Rejected URIs"
948
  msgstr ""
949
 
950
- #: wp-cache.php:1146
951
- msgid "Caching On"
952
- msgstr ""
953
-
954
- #: wp-cache.php:1147
955
- msgid "Caching Off"
956
- msgstr ""
957
-
958
- #: wp-cache.php:1148
959
- msgid "Note: enables PHP caching, cache rebuild, and mobile support"
960
- msgstr ""
961
-
962
- #: wp-cache.php:1158
963
  msgid ""
964
  "Notice: PHP caching enabled but Supercache mod_rewrite rules detected. "
965
  "Cached files will be served using those rules. If your site is working ok, "
@@ -967,119 +957,119 @@ msgid ""
967
  "the root of your install and remove the SuperCache rules."
968
  msgstr ""
969
 
970
- #: wp-cache.php:1163
971
  msgid "Cache Tester"
972
  msgstr ""
973
 
974
- #: wp-cache.php:1164
975
  msgid "Test your cached website by clicking the test button below."
976
  msgstr ""
977
 
978
- #: wp-cache.php:1170
979
  msgid "Fetching %s to prime cache: "
980
  msgstr ""
981
 
982
- #: wp-cache.php:1172 wp-cache.php:1181 wp-cache.php:1193
983
  msgid "OK"
984
  msgstr ""
985
 
986
- #: wp-cache.php:1175
987
  msgid "Fetching first copy of %s: "
988
  msgstr ""
989
 
990
- #: wp-cache.php:1184 wp-cache.php:1195
991
  msgid "FAILED"
992
  msgstr ""
993
 
994
- #: wp-cache.php:1187
995
  msgid "Fetching second copy of %s: "
996
  msgstr ""
997
 
998
- #: wp-cache.php:1199
999
  msgid "One or more page requests failed:"
1000
  msgstr ""
1001
 
1002
- #: wp-cache.php:1218 wp-cache.php:1219
1003
  msgid "Page %d: %d (%s)"
1004
  msgstr ""
1005
 
1006
- #: wp-cache.php:1225
1007
  msgid "Page 1: %s"
1008
  msgstr ""
1009
 
1010
- #: wp-cache.php:1226
1011
  msgid "Page 2: %s"
1012
  msgstr ""
1013
 
1014
- #: wp-cache.php:1227
1015
  msgid "The timestamps on both pages match!"
1016
  msgstr ""
1017
 
1018
- #: wp-cache.php:1229
1019
  msgid "The pages do not match! Timestamps differ or were not found!"
1020
  msgstr ""
1021
 
1022
- #: wp-cache.php:1230
1023
  msgid "Things you can do:"
1024
  msgstr ""
1025
 
1026
- #: wp-cache.php:1231
1027
  msgid ""
1028
  "Load your homepage in a logged out browser, check the timestamp at the end "
1029
  "of the html source. Load the page again and compare the timestamp. Caching "
1030
  "is working if the timestamps match."
1031
  msgstr ""
1032
 
1033
- #: wp-cache.php:1232
1034
  msgid ""
1035
  "Enable logging on the Debug page here. That should help you track down the "
1036
  "problem."
1037
  msgstr ""
1038
 
1039
- #: wp-cache.php:1233
1040
  msgid ""
1041
  "You should check Page 1 and Page 2 above for errors. Your local server "
1042
  "configuration may not allow your website to access itself."
1043
  msgstr ""
1044
 
1045
- #: wp-cache.php:1241
1046
  msgid "Send non-secure (non https) request for homepage"
1047
  msgstr ""
1048
 
1049
- #: wp-cache.php:1242
1050
  msgid "Test Cache"
1051
  msgstr ""
1052
 
1053
- #: wp-cache.php:1246
1054
  msgid "Delete Cached Pages"
1055
  msgstr ""
1056
 
1057
- #: wp-cache.php:1247
1058
  msgid ""
1059
  "Cached pages are stored on your server as html and PHP files. If you need to "
1060
  "delete them, use the button below."
1061
  msgstr ""
1062
 
1063
- #: wp-cache.php:1250 wp-cache.php:2688 wp-cache.php:2707 wp-cache.php:2898
1064
- #: wp-cache.php:3437
1065
  msgid "Delete Cache"
1066
  msgstr ""
1067
 
1068
- #: wp-cache.php:1257 wp-cache.php:2694
1069
  msgid "Delete Cache On All Blogs"
1070
  msgstr ""
1071
 
1072
- #: wp-cache.php:1262
1073
  msgid "Recommended Links and Plugins"
1074
  msgstr ""
1075
 
1076
- #: wp-cache.php:1263
1077
  msgid ""
1078
  "Caching is only one part of making a website faster. Here are some other "
1079
  "plugins that will help:"
1080
  msgstr ""
1081
 
1082
- #: wp-cache.php:1264
1083
  msgid ""
1084
  "<a href=\"%s\">Yahoo! Yslow</a> is an extension for the Firefox add-on "
1085
  "Firebug. It analyzes web pages and suggests ways to improve their "
@@ -1087,99 +1077,92 @@ msgid ""
1087
  "the performance tools online at <a href=\"%s\">GTMetrix</a>."
1088
  msgstr ""
1089
 
1090
- #: wp-cache.php:1265
1091
  msgid ""
1092
  "<a href=\"%s\">Use Google Libraries</a> allows you to load some commonly "
1093
  "used Javascript libraries from Google webservers. Ironically, it may reduce "
1094
  "your Yslow score."
1095
  msgstr ""
1096
 
1097
- #: wp-cache.php:1266
1098
- msgid ""
1099
- "<strong>Advanced users only:</strong> <a href=\"%s\">Speed up your site with "
1100
- "Caching and cache-control</a> explains how to make your site more cacheable "
1101
- "with .htaccess rules."
1102
- msgstr ""
1103
-
1104
- #: wp-cache.php:1267
1105
  msgid ""
1106
  "<strong>Advanced users only:</strong> Install an object cache. Choose from "
1107
  "<a href=\"%s\">Memcached</a>, <a href=\"%s\">XCache</a>, <a href=\"%s"
1108
  "\">eAcccelerator</a> and others."
1109
  msgstr ""
1110
 
1111
- #: wp-cache.php:1268
1112
  msgid ""
1113
  "<a href=\"%s\">Cron View</a> is a useful plugin to use when trying to debug "
1114
  "garbage collection and preload problems."
1115
  msgstr ""
1116
 
1117
- #: wp-cache.php:1279
1118
  msgid "Need Help?"
1119
  msgstr ""
1120
 
1121
- #: wp-cache.php:1281
1122
  msgid ""
1123
  "Use the debug system in the Debug tab above. It will tell you what the "
1124
  "plugin is doing."
1125
  msgstr ""
1126
 
1127
- #: wp-cache.php:1282
1128
  msgid "<a href=\"%1$s\">Installation Help</a>"
1129
  msgstr ""
1130
 
1131
- #: wp-cache.php:1283
1132
  msgid "<a href=\"%1$s\">Frequently Asked Questions</a>"
1133
  msgstr ""
1134
 
1135
- #: wp-cache.php:1284
1136
  msgid "<a href=\"%1$s\">Support Forum</a>"
1137
  msgstr ""
1138
 
1139
- #: wp-cache.php:1285
1140
  msgid "<a href=\"%1$s\">Development Version</a>"
1141
  msgstr ""
1142
 
1143
- #: wp-cache.php:1287
1144
  msgid "Rate This Plugin!"
1145
  msgstr ""
1146
 
1147
- #: wp-cache.php:1288
1148
  msgid ""
1149
  "Please <a href=\"%s\">rate</a> this plugin and tell me if it works for you "
1150
  "or not. It really helps development."
1151
  msgstr ""
1152
 
1153
- #: wp-cache.php:1297
1154
  msgid "Cached pages since %1$s : <strong>%2$s</strong>"
1155
  msgstr ""
1156
 
1157
- #: wp-cache.php:1298
1158
  msgid "Newest Cached Pages:"
1159
  msgstr ""
1160
 
1161
- #: wp-cache.php:1302
1162
  msgid "Cached %s seconds ago"
1163
  msgstr ""
1164
 
1165
- #: wp-cache.php:1305
1166
  msgid "(may not always be accurate on busy sites)"
1167
  msgstr ""
1168
 
1169
- #: wp-cache.php:1321
1170
  msgid ""
1171
  "Cache plugins are PHP scripts that live in a plugins folder inside the wp-"
1172
  "super-cache folder. They are loaded when Supercache loads, much sooner than "
1173
  "regular WordPress plugins."
1174
  msgstr ""
1175
 
1176
- #: wp-cache.php:1322
1177
  msgid ""
1178
  "This is strictly an advanced feature only and knowledge of both PHP and "
1179
  "WordPress actions is required to create them."
1180
  msgstr ""
1181
 
1182
- #: wp-cache.php:1323
1183
  msgid ""
1184
  "<strong>Warning</strong>! Due to the way WordPress upgrades plugins, the "
1185
  "plugins you upload to wp-super-cache/plugins/ will be deleted when you "
@@ -1190,75 +1173,75 @@ msgid ""
1190
  "\">developer documentation</a>."
1191
  msgstr ""
1192
 
1193
- #: wp-cache.php:1333
1194
  msgid "Available Plugins"
1195
  msgstr ""
1196
 
1197
- #: wp-cache.php:1350
1198
  msgid "Easy"
1199
  msgstr ""
1200
 
1201
- #: wp-cache.php:1350
1202
  msgid "CDN"
1203
  msgstr ""
1204
 
1205
- #: wp-cache.php:1350
1206
  msgid "Contents"
1207
  msgstr ""
1208
 
1209
- #: wp-cache.php:1350
1210
  msgid "Preload"
1211
  msgstr ""
1212
 
1213
- #: wp-cache.php:1350
1214
  msgid "Plugins"
1215
  msgstr ""
1216
 
1217
- #: wp-cache.php:1350
1218
  msgid "Debug"
1219
  msgstr ""
1220
 
1221
- #: wp-cache.php:1388
1222
  msgid ""
1223
  "Notice: WP Super Cache mod_rewrite rule checks disabled unless running on <a "
1224
  "href=\"%s\">the main site</a> of this network."
1225
  msgstr ""
1226
 
1227
- #: wp-cache.php:1397
1228
  msgid "Mod Rewrite Rules"
1229
  msgstr ""
1230
 
1231
- #: wp-cache.php:1403
1232
  msgid "WordPress MU Detected"
1233
  msgstr ""
1234
 
1235
- #: wp-cache.php:1403
1236
  msgid ""
1237
  "Unfortunately, the rewrite rules cannot be updated automatically when "
1238
  "running WordPress MU. Please open your .htaccess and add the following "
1239
  "mod_rewrite rules above any other rules in that file."
1240
  msgstr ""
1241
 
1242
- #: wp-cache.php:1405
1243
  msgid "Mod Rewrite rules cannot be updated!"
1244
  msgstr ""
1245
 
1246
- #: wp-cache.php:1406
1247
  msgid ""
1248
  "You must have <strong>BEGIN</strong> and <strong>END</strong> markers in %s."
1249
  "htaccess for the auto update to work. They look like this and surround the "
1250
  "main WordPress mod_rewrite rules:"
1251
  msgstr ""
1252
 
1253
- #: wp-cache.php:1408
1254
  msgid "Refresh this page when you have updated your .htaccess file."
1255
  msgstr ""
1256
 
1257
- #: wp-cache.php:1412
1258
  msgid "Thank you for upgrading."
1259
  msgstr ""
1260
 
1261
- #: wp-cache.php:1412
1262
  msgid ""
1263
  "The mod_rewrite rules changed since you last installed this plugin. "
1264
  "Unfortunately, you must remove the old supercache rules before the new ones "
@@ -1270,11 +1253,11 @@ msgid ""
1270
  "brave enough to use them."
1271
  msgstr ""
1272
 
1273
- #: wp-cache.php:1416
1274
  msgid "Trailing slash check required."
1275
  msgstr ""
1276
 
1277
- #: wp-cache.php:1416
1278
  msgid ""
1279
  "It looks like your blog has URLs that end with a \"/\". Unfortunately since "
1280
  "you installed this plugin a duplicate content bug has been found where URLs "
@@ -1283,41 +1266,41 @@ msgid ""
1283
  "and add these two rules to the two groups of Super Cache rules:"
1284
  msgstr ""
1285
 
1286
- #: wp-cache.php:1418
1287
  msgid ""
1288
  "You can see where the rules go and examine the complete rules by clicking "
1289
  "the \"View mod_rewrite rules\" link below."
1290
  msgstr ""
1291
 
1292
- #: wp-cache.php:1432
1293
  msgid "Mod Rewrite rules updated!"
1294
  msgstr ""
1295
 
1296
- #: wp-cache.php:1433
1297
  msgid ""
1298
  "%s.htaccess has been updated with the necessary mod_rewrite rules. Please "
1299
  "verify they are correct. They should look like this:"
1300
  msgstr ""
1301
 
1302
- #: wp-cache.php:1435
1303
  msgid "Mod Rewrite rules must be updated!"
1304
  msgstr ""
1305
 
1306
- #: wp-cache.php:1436
1307
  msgid ""
1308
  "Your %s.htaccess is not writable by the webserver and must be updated with "
1309
  "the necessary mod_rewrite rules. The new rules go above the regular "
1310
  "WordPress rules as shown in the code below:"
1311
  msgstr ""
1312
 
1313
- #: wp-cache.php:1441
1314
  msgid ""
1315
  "WP Super Cache mod rewrite rules were detected in your %s.htaccess file.<br /"
1316
  "> Click the following link to see the lines added to that file. If you have "
1317
  "upgraded the plugin, make sure these rules match."
1318
  msgstr ""
1319
 
1320
- #: wp-cache.php:1444
1321
  msgid ""
1322
  "A difference between the rules in your .htaccess file and the plugin rewrite "
1323
  "rules has been found. This could be simple whitespace differences, but you "
@@ -1325,247 +1308,247 @@ msgid ""
1325
  "Click the &#8217;Update Mod_Rewrite Rules&#8217; button to update the rules."
1326
  msgstr ""
1327
 
1328
- #: wp-cache.php:1446
1329
  msgid "View Mod_Rewrite Rules"
1330
  msgstr ""
1331
 
1332
- #: wp-cache.php:1452 wp-cache.php:3016
1333
  msgid "Rules must be added to %s too:"
1334
  msgstr ""
1335
 
1336
- #: wp-cache.php:1458
1337
  msgid "Gzip encoding rules in %s.htaccess created."
1338
  msgstr ""
1339
 
1340
- #: wp-cache.php:1464
1341
  msgid "Fix Configuration"
1342
  msgstr ""
1343
 
1344
- #: wp-cache.php:1467
1345
  msgid "Restore Default Configuration"
1346
  msgstr ""
1347
 
1348
- #: wp-cache.php:1475
1349
  msgid ""
1350
  "Comment moderation is enabled. Your comment may take some time to appear."
1351
  msgstr ""
1352
 
1353
- #: wp-cache.php:1500
1354
  msgid "Lock Down:"
1355
  msgstr ""
1356
 
1357
- #: wp-cache.php:1501
1358
  msgid ""
1359
  "Prepare your server for an expected spike in traffic by enabling the lock "
1360
  "down. When this is enabled, new comments on a post will not refresh the "
1361
  "cached static files."
1362
  msgstr ""
1363
 
1364
- #: wp-cache.php:1502
1365
  msgid ""
1366
  "Developers: Make your plugin lock down compatible by checking the "
1367
  "\"WPLOCKDOWN\" constant. The following code will make sure your plugin "
1368
  "respects the WPLOCKDOWN setting."
1369
  msgstr ""
1370
 
1371
- #: wp-cache.php:1504
1372
  msgid "Sorry. My blog is locked down. Updates will appear shortly"
1373
  msgstr ""
1374
 
1375
- #: wp-cache.php:1508
1376
  msgid ""
1377
  "WordPress is locked down. Super Cache static files will not be deleted when "
1378
  "new comments are made."
1379
  msgstr ""
1380
 
1381
- #: wp-cache.php:1510
1382
  msgid ""
1383
  "WordPress is not locked down. New comments will refresh Super Cache static "
1384
  "files as normal."
1385
  msgstr ""
1386
 
1387
- #: wp-cache.php:1516
1388
  msgid "Lock Down"
1389
  msgstr ""
1390
 
1391
- #: wp-cache.php:1524
1392
  msgid "Directly Cached Files"
1393
  msgstr ""
1394
 
1395
- #: wp-cache.php:1576
1396
  msgid "Cannot delete directory"
1397
  msgstr ""
1398
 
1399
- #: wp-cache.php:1585
1400
  msgid "%s removed!"
1401
  msgstr ""
1402
 
1403
- #: wp-cache.php:1593
1404
  msgid ""
1405
  "You must make %s writable to enable this feature. As this is a security "
1406
  "risk, please make it read-only after your page is generated."
1407
  msgstr ""
1408
 
1409
- #: wp-cache.php:1598
1410
  msgid ""
1411
  "%s is writable. Please make it readonly after your page is generated as this "
1412
  "is a security risk."
1413
  msgstr ""
1414
 
1415
- #: wp-cache.php:1613
1416
  msgid "Existing direct page"
1417
  msgstr ""
1418
 
1419
- #: wp-cache.php:1613
1420
  msgid "Delete cached file"
1421
  msgstr ""
1422
 
1423
- #: wp-cache.php:1618
1424
  msgid "Add direct page:"
1425
  msgstr ""
1426
 
1427
- #: wp-cache.php:1620
1428
  msgid ""
1429
  "Directly cached files are files created directly off %s where your blog "
1430
  "lives. This feature is only useful if you are expecting a major Digg or "
1431
  "Slashdot level of traffic to one post or page."
1432
  msgstr ""
1433
 
1434
- #: wp-cache.php:1622
1435
  msgid ""
1436
  "For example: to cache <em>%1$sabout/</em>, you would enter %1$sabout/ or /"
1437
  "about/. The cached file will be generated the next time an anonymous user "
1438
  "visits that page."
1439
  msgstr ""
1440
 
1441
- #: wp-cache.php:1623
1442
  msgid ""
1443
  "Make the textbox blank to remove it from the list of direct pages and delete "
1444
  "the cached file."
1445
  msgstr ""
1446
 
1447
- #: wp-cache.php:1628
1448
  msgid "Update Direct Pages"
1449
  msgstr ""
1450
 
1451
- #: wp-cache.php:1656
1452
  msgctxt "timezone date format"
1453
  msgid "Y-m-d G:i:s"
1454
  msgstr ""
1455
 
1456
- #: wp-cache.php:1724
1457
  msgid "Expiry Time &amp; Garbage Collection"
1458
  msgstr ""
1459
 
1460
- #: wp-cache.php:1726
1461
  msgid ""
1462
  "<abbr title=\"Coordinated Universal Time\">UTC</abbr> time is <code>%s</code>"
1463
  msgstr ""
1464
 
1465
- #: wp-cache.php:1729
1466
  msgid "Local time is <code>%1$s</code>"
1467
  msgstr ""
1468
 
1469
- #: wp-cache.php:1733
1470
  msgid "Next scheduled garbage collection will be at <strong>%s UTC</strong>"
1471
  msgstr ""
1472
 
1473
- #: wp-cache.php:1737
1474
  msgid ""
1475
  "Warning! <strong>PRELOAD MODE</strong> activated. Supercache files will not "
1476
  "be deleted regardless of age."
1477
  msgstr ""
1478
 
1479
- #: wp-cache.php:1755
1480
  msgid "Cache Timeout"
1481
  msgstr ""
1482
 
1483
- #: wp-cache.php:1756 wp-cache.php:1759
1484
  msgid "seconds"
1485
  msgstr ""
1486
 
1487
- #: wp-cache.php:1757
1488
  msgid ""
1489
  "How long should cached pages remain fresh? Set to 0 to disable garbage "
1490
  "collection. A good starting point is 3600 seconds."
1491
  msgstr ""
1492
 
1493
- #: wp-cache.php:1758
1494
  msgid "Scheduler"
1495
  msgstr ""
1496
 
1497
- #: wp-cache.php:1758
1498
  msgid "Timer:"
1499
  msgstr ""
1500
 
1501
- #: wp-cache.php:1759
1502
  msgid "Check for stale cached files every <em>interval</em> seconds."
1503
  msgstr ""
1504
 
1505
- #: wp-cache.php:1760
1506
  msgid "Clock:"
1507
  msgstr ""
1508
 
1509
- #: wp-cache.php:1761
1510
  msgid "HH:MM"
1511
  msgstr ""
1512
 
1513
- #: wp-cache.php:1761
1514
  msgid ""
1515
  "Check for stale cached files at this time <strong>(UTC)</strong> or starting "
1516
  "at this time every <em>interval</em> below."
1517
  msgstr ""
1518
 
1519
- #: wp-cache.php:1763
1520
  msgid "Interval:"
1521
  msgstr ""
1522
 
1523
- #: wp-cache.php:1769
1524
  msgid "Notification Emails"
1525
  msgstr ""
1526
 
1527
- #: wp-cache.php:1770
1528
  msgid "Email me when the garbage collection runs."
1529
  msgstr ""
1530
 
1531
- #: wp-cache.php:1772
1532
  msgid "Garbage Collection"
1533
  msgstr ""
1534
 
1535
- #: wp-cache.php:1773
1536
  msgid ""
1537
  "<em>Garbage collection</em> is the simple act of throwing out your garbage. "
1538
  "For this plugin that would be old or <em>stale</em> cached files that may be "
1539
  "out of date. New cached files are described as <em>fresh</em>."
1540
  msgstr ""
1541
 
1542
- #: wp-cache.php:1774
1543
  msgid ""
1544
  "Cached files are fresh for a limited length of time. You can set that time "
1545
  "in the <em>Cache Timeout</em> text box on this page."
1546
  msgstr ""
1547
 
1548
- #: wp-cache.php:1775
1549
  msgid ""
1550
  "Stale cached files are not removed as soon as they become stale. They have "
1551
  "to be removed by the garbage collecter. That is why you have to tell the "
1552
  "plugin when the garbage collector should run."
1553
  msgstr ""
1554
 
1555
- #: wp-cache.php:1776
1556
  msgid ""
1557
  "Use the <em>Timer</em> or <em>Clock</em> schedulers to define when the "
1558
  "garbage collector should run."
1559
  msgstr ""
1560
 
1561
- #: wp-cache.php:1777
1562
  msgid ""
1563
  "The <em>Timer</em> scheduler tells the plugin to run the garbage collector "
1564
  "at regular intervals. When one garbage collection is done, the next run is "
1565
  "scheduled."
1566
  msgstr ""
1567
 
1568
- #: wp-cache.php:1778
1569
  msgid ""
1570
  "Or, the <em>Clock</em> scheduler allows the garbage collection to run at "
1571
  "specific times. If set to run hourly or twice daily, the garbage collector "
@@ -1574,42 +1557,42 @@ msgid ""
1574
  "the time specified."
1575
  msgstr ""
1576
 
1577
- #: wp-cache.php:1780
1578
  msgid ""
1579
  "There are no best garbage collection settings but here are a few scenarios. "
1580
  "Garbage collection is separate to other actions that clear our cached files "
1581
  "like leaving a comment or publishing a post."
1582
  msgstr ""
1583
 
1584
- #: wp-cache.php:1782
1585
  msgid ""
1586
  "Sites that want to serve lots of newly generated data should set the "
1587
  "<em>Cache Timeout</em> to 60 and use the <em>Timer</em> scheduler set to 90 "
1588
  "seconds."
1589
  msgstr ""
1590
 
1591
- #: wp-cache.php:1783
1592
  msgid ""
1593
  "Sites with widgets and rss feeds in their sidebar should probably use a "
1594
  "timeout of 3600 seconds and set the timer to 600 seconds. Stale files will "
1595
  "be caught within 10 minutes of going stale."
1596
  msgstr ""
1597
 
1598
- #: wp-cache.php:1784
1599
  msgid ""
1600
  "Sites with lots of static content, no widgets or rss feeds in their sidebar "
1601
  "can use a timeout of 86400 seconds or even more and set the timer to "
1602
  "something equally long."
1603
  msgstr ""
1604
 
1605
- #: wp-cache.php:1785
1606
  msgid ""
1607
  "Sites where an external data source updates at a particular time every day "
1608
  "should set the timeout to 86400 seconds and use the Clock scheduler set "
1609
  "appropriately."
1610
  msgstr ""
1611
 
1612
- #: wp-cache.php:1787
1613
  msgid ""
1614
  "Checking for and deleting expired files is expensive, but it&#8217;s "
1615
  "expensive leaving them there too. On a very busy site, you should set the "
@@ -1620,81 +1603,81 @@ msgid ""
1620
  "using mod_rewrite or PHP caching."
1621
  msgstr ""
1622
 
1623
- #: wp-cache.php:1788
1624
  msgid "Set the expiry time to 0 seconds to disable garbage collection."
1625
  msgstr ""
1626
 
1627
- #: wp-cache.php:1789
1628
  msgid "Change Expiration"
1629
  msgstr ""
1630
 
1631
- #: wp-cache.php:1833
1632
  msgid "Rejected User Agents"
1633
  msgstr ""
1634
 
1635
- #: wp-cache.php:1834
1636
  msgid ""
1637
  "Strings in the HTTP &#8217;User Agent&#8217; header that prevent WP-Cache "
1638
  "from caching bot, spiders, and crawlers&#8217; requests. Note that super "
1639
  "cached files are still sent to these agents if they already exists."
1640
  msgstr ""
1641
 
1642
- #: wp-cache.php:1841
1643
  msgid "Save UA Strings"
1644
  msgstr ""
1645
 
1646
- #: wp-cache.php:1864
1647
  msgid ""
1648
  "Do not cache the following page types. See the <a href=\"http://codex."
1649
  "wordpress.org/Conditional_Tags\">Conditional Tags</a> documentation for a "
1650
  "complete discussion on each type."
1651
  msgstr ""
1652
 
1653
- #: wp-cache.php:1867
1654
  msgid "Single Posts"
1655
  msgstr ""
1656
 
1657
- #: wp-cache.php:1868
1658
  msgid "Pages"
1659
  msgstr ""
1660
 
1661
- #: wp-cache.php:1869
1662
  msgid "Front Page"
1663
  msgstr ""
1664
 
1665
- #: wp-cache.php:1870
1666
  msgid "Home"
1667
  msgstr ""
1668
 
1669
- #: wp-cache.php:1871
1670
  msgid "Archives"
1671
  msgstr ""
1672
 
1673
- #: wp-cache.php:1872
1674
  msgid "Tags"
1675
  msgstr ""
1676
 
1677
- #: wp-cache.php:1873
1678
  msgid "Category"
1679
  msgstr ""
1680
 
1681
- #: wp-cache.php:1874
1682
  msgid "Feeds"
1683
  msgstr ""
1684
 
1685
- #: wp-cache.php:1875
1686
  msgid "Search Pages"
1687
  msgstr ""
1688
 
1689
- #: wp-cache.php:1876
1690
  msgid "Author Pages"
1691
  msgstr ""
1692
 
1693
- #: wp-cache.php:1878 wp-cache.php:1992
1694
  msgid "Save"
1695
  msgstr ""
1696
 
1697
- #: wp-cache.php:1895
1698
  msgid ""
1699
  "Add here strings (not a filename) that forces a page not to be cached. For "
1700
  "example, if your URLs include year and you dont want to cache last year "
@@ -1703,51 +1686,51 @@ msgid ""
1703
  "cache that page."
1704
  msgstr ""
1705
 
1706
- #: wp-cache.php:1901
1707
  msgid "Save Strings"
1708
  msgstr ""
1709
 
1710
- #: wp-cache.php:1917
1711
  msgid ""
1712
  "Add here those filenames that can be cached, even if they match one of the "
1713
  "rejected substring specified above."
1714
  msgstr ""
1715
 
1716
- #: wp-cache.php:1923
1717
  msgid "Save Files"
1718
  msgstr ""
1719
 
1720
- #: wp-cache.php:1966
1721
  msgid "Currently logging to: %s"
1722
  msgstr ""
1723
 
1724
- #: wp-cache.php:1969
1725
  msgid ""
1726
  "Fix problems with the plugin by debugging it here. It can log them to a file "
1727
  "in your cache directory."
1728
  msgstr ""
1729
 
1730
- #: wp-cache.php:1973
1731
  msgid "Debugging"
1732
  msgstr ""
1733
 
1734
- #: wp-cache.php:1974
1735
  msgid "IP Address"
1736
  msgstr ""
1737
 
1738
- #: wp-cache.php:1974
1739
  msgid "(only log requests from this IP address. Your IP is %s)"
1740
  msgstr ""
1741
 
1742
- #: wp-cache.php:1975
1743
  msgid "Cache Status Messages"
1744
  msgstr ""
1745
 
1746
- #: wp-cache.php:1976
1747
  msgid "Display comments at the end of every page like this:"
1748
  msgstr ""
1749
 
1750
- #: wp-cache.php:1982
1751
  msgid ""
1752
  "In very rare cases two problems may arise on some blogs:<ol><li> The front "
1753
  "page may start downloading as a zip file.</li><li> The wrong page is "
@@ -1755,7 +1738,7 @@ msgid ""
1755
  "and the permalink structure is <em>/%category%/%postname%/</em>.</li></ol>"
1756
  msgstr ""
1757
 
1758
- #: wp-cache.php:1983
1759
  msgid ""
1760
  "I&#8217;m 99% certain that they aren&#8217;t bugs in WP Super Cache and they "
1761
  "only happen in very rare cases but you can run a simple check once every 5 "
@@ -1763,54 +1746,54 @@ msgid ""
1763
  "emailed if there is a problem."
1764
  msgstr ""
1765
 
1766
- #: wp-cache.php:1985
1767
  msgid "Check front page every 5 minutes."
1768
  msgstr ""
1769
 
1770
- #: wp-cache.php:1986
1771
  msgid "Front page text"
1772
  msgstr ""
1773
 
1774
- #: wp-cache.php:1986
1775
  msgid ""
1776
  "Text to search for on your front page. If this text is missing, the cache "
1777
  "will be cleared. Leave blank to disable."
1778
  msgstr ""
1779
 
1780
- #: wp-cache.php:1987
1781
  msgid "Clear cache on error."
1782
  msgstr ""
1783
 
1784
- #: wp-cache.php:1988
1785
  msgid "Email the blog admin when checks are made. (useful for testing)"
1786
  msgstr ""
1787
 
1788
- #: wp-cache.php:2002
1789
  msgid ""
1790
  "Error: GZIP compression is enabled. Disable it if you want to enable wp-"
1791
  "cache."
1792
  msgstr ""
1793
 
1794
- #: wp-cache.php:2052 wp-cache.php:2351 wp-cache.php:2387
1795
  msgid "Warning"
1796
  msgstr ""
1797
 
1798
- #: wp-cache.php:2052
1799
  msgid ""
1800
  "GZIP compression is enabled in WordPress, wp-cache will be bypassed until "
1801
  "you disable gzip compression."
1802
  msgstr ""
1803
 
1804
- #: wp-cache.php:2149 wp-cache.php:2155
1805
  msgid "WP Super Cache Warning!"
1806
  msgstr ""
1807
 
1808
- #: wp-cache.php:2150
1809
  msgid ""
1810
  "All users of this site have been logged out to refresh their login cookies."
1811
  msgstr ""
1812
 
1813
- #: wp-cache.php:2156
1814
  msgid ""
1815
  "Your server is configured to show files and directories, which may expose "
1816
  "sensitive data such as login cookies to attackers in the cache directories. "
@@ -1819,77 +1802,77 @@ msgid ""
1819
  "directory on the Advanced Settings page."
1820
  msgstr ""
1821
 
1822
- #: wp-cache.php:2158
1823
  msgid ""
1824
  "If you just installed WP Super Cache for the first time, you can dismiss "
1825
  "this message. Otherwise, you should probably refresh the login cookies of "
1826
  "all logged in WordPress users here by clicking the logout link below."
1827
  msgstr ""
1828
 
1829
- #: wp-cache.php:2161
1830
  msgid ""
1831
  "Your site is using a very old version of WordPress. When you update to the "
1832
  "latest version everyone will be logged out and cookie information updated."
1833
  msgstr ""
1834
 
1835
- #: wp-cache.php:2163
1836
  msgid ""
1837
  "The logout link will log out all WordPress users on this site except you. "
1838
  "Your authentication cookie will be updated, but you will not be logged out."
1839
  msgstr ""
1840
 
1841
- #: wp-cache.php:2167
1842
  msgid "Logout"
1843
  msgstr ""
1844
 
1845
- #: wp-cache.php:2271 wp-cache.php:2276 wp-cache.php:2310 wp-cache.php:2315
1846
- #: wp-cache.php:2321
1847
  msgid "Error"
1848
  msgstr ""
1849
 
1850
- #: wp-cache.php:2271
1851
  msgid ""
1852
  "Your cache directory (<strong>%1$s</strong>) did not exist and couldn&#8217;"
1853
  "t be created by the web server. Check %1$s permissions."
1854
  msgstr ""
1855
 
1856
- #: wp-cache.php:2276
1857
  msgid ""
1858
  "Your cache directory (<strong>%1$s</strong>) or <strong>%2$s</strong> need "
1859
  "to be writable for this plugin to work. Double-check it."
1860
  msgstr ""
1861
 
1862
- #: wp-cache.php:2310
1863
  msgid ""
1864
  "Your WP-Cache config file (<strong>%s</strong>) is out of date and not "
1865
  "writable by the Web server. Please delete it and refresh this page."
1866
  msgstr ""
1867
 
1868
- #: wp-cache.php:2315
1869
  msgid ""
1870
  "Configuration file missing and %1$s directory (<strong>%2$s</strong>) is "
1871
  "not writable by the web server. Check its permissions."
1872
  msgstr ""
1873
 
1874
- #: wp-cache.php:2321
1875
  msgid ""
1876
  "Sample WP-Cache config file (<strong>%s</strong>) does not exist. Verify "
1877
  "your installation."
1878
  msgstr ""
1879
 
1880
- #: wp-cache.php:2351
1881
  msgid "Could not update %s!</em> WPCACHEHOME must be set in config file."
1882
  msgstr ""
1883
 
1884
- #: wp-cache.php:2387
1885
  msgid "%s/advanced-cache.php</em> does not exist or cannot be updated."
1886
  msgstr ""
1887
 
1888
- #: wp-cache.php:2388
1889
  msgid "1. If it already exists, please delete the file first."
1890
  msgstr ""
1891
 
1892
- #: wp-cache.php:2389
1893
  msgid ""
1894
  "2. Make %1$s writable using the chmod command through your ftp or server "
1895
  "software. (<em>chmod 777 %1$s</em>) and refresh this page. This is only a "
@@ -1897,24 +1880,24 @@ msgid ""
1897
  "again. (Change 777 to 755 in the previous command)"
1898
  msgstr ""
1899
 
1900
- #: wp-cache.php:2390
1901
  msgid "3. Refresh this page to update <em>%s/advanced-cache.php</em>"
1902
  msgstr ""
1903
 
1904
- #: wp-cache.php:2391
1905
  msgid ""
1906
  "If that doesn&#8217;t work, make sure the file <em>%s/advanced-cache.php</"
1907
  "em> doesn&#8217;t exist:"
1908
  msgstr ""
1909
 
1910
- #: wp-cache.php:2392
1911
  msgid ""
1912
  "<li>1. Open <em>%1$s$wp_cache_file</em> in a text editor.</li><li>2. Change "
1913
  "the text <em>CACHEHOME</em> to <em>%2$s</em></li><li>3. Save the file and "
1914
  "copy it to <em>%3$s</em> and refresh this page.</li>"
1915
  msgstr ""
1916
 
1917
- #: wp-cache.php:2415
1918
  msgid ""
1919
  "<h3>WP_CACHE constant set to false</h3><p>The WP_CACHE constant is used by "
1920
  "WordPress to load the code that serves cached pages. Unfortunately, it is "
@@ -1923,20 +1906,20 @@ msgid ""
1923
  "('WP_CACHE', true);</code></p>"
1924
  msgstr ""
1925
 
1926
- #: wp-cache.php:2417
1927
  msgid ""
1928
  "<strong>Error: WP_CACHE is not enabled</strong> in your <code>wp-config.php</"
1929
  "code> file and I couldn&#8217;t modify it."
1930
  msgstr ""
1931
 
1932
- #: wp-cache.php:2418
1933
  msgid ""
1934
  "Edit <code>%s</code> and add the following line:<br /> <code>define"
1935
  "('WP_CACHE', true);</code><br />Otherwise, <strong>WP-Cache will not be "
1936
  "executed</strong> by WordPress core. "
1937
  msgstr ""
1938
 
1939
- #: wp-cache.php:2422
1940
  msgid ""
1941
  "<h3>WP_CACHE constant added to wp-config.php</h3><p>If you continue to see "
1942
  "this warning message please see point 5 of the <a href=\"http://wordpress."
@@ -1944,131 +1927,131 @@ msgid ""
1944
  "line must be moved up."
1945
  msgstr ""
1946
 
1947
- #: wp-cache.php:2450
1948
  msgid "Cache Contents"
1949
  msgstr ""
1950
 
1951
- #: wp-cache.php:2453
1952
  msgid "Object cache in use. No cache listing available."
1953
  msgstr ""
1954
 
1955
- #: wp-cache.php:2477
1956
  msgid "Deleting supercache file: <strong>%s</strong><br />"
1957
  msgstr ""
1958
 
1959
- #: wp-cache.php:2499
1960
  msgid "Deleting wp-cache file: <strong>%s</strong><br />"
1961
  msgstr ""
1962
 
1963
- #: wp-cache.php:2566
1964
  msgid ""
1965
  "Cache stats are not automatically generated. You must click the link below "
1966
  "to regenerate the stats on this page."
1967
  msgstr ""
1968
 
1969
- #: wp-cache.php:2567
1970
  msgid "Regenerate cache stats"
1971
  msgstr ""
1972
 
1973
- #: wp-cache.php:2569
1974
  msgid "Cache stats last generated: %s minutes ago."
1975
  msgstr ""
1976
 
1977
- #: wp-cache.php:2575
1978
  msgid "WP-Cache"
1979
  msgstr ""
1980
 
1981
- #: wp-cache.php:2576 wp-cache.php:2591
1982
  msgid "%s Cached Pages"
1983
  msgstr ""
1984
 
1985
- #: wp-cache.php:2577 wp-cache.php:2596
1986
  msgid "%s Expired Pages"
1987
  msgstr ""
1988
 
1989
- #: wp-cache.php:2590
1990
  msgid "WP-Super-Cache"
1991
  msgstr ""
1992
 
1993
- #: wp-cache.php:2600
1994
  msgid "Fresh WP-Cached Files"
1995
  msgstr ""
1996
 
1997
- #: wp-cache.php:2601 wp-cache.php:2617 wp-cache.php:2633 wp-cache.php:2649
1998
  msgid "URI"
1999
  msgstr ""
2000
 
2001
- #: wp-cache.php:2601 wp-cache.php:2617
2002
  msgid "Key"
2003
  msgstr ""
2004
 
2005
- #: wp-cache.php:2601 wp-cache.php:2617 wp-cache.php:2633 wp-cache.php:2649
2006
  msgid "Age"
2007
  msgstr ""
2008
 
2009
- #: wp-cache.php:2601 wp-cache.php:2617 wp-cache.php:2633 wp-cache.php:2649
2010
  msgid "Delete"
2011
  msgstr ""
2012
 
2013
- #: wp-cache.php:2616
2014
  msgid "Stale WP-Cached Files"
2015
  msgstr ""
2016
 
2017
- #: wp-cache.php:2632
2018
  msgid "Fresh Super Cached Files"
2019
  msgstr ""
2020
 
2021
- #: wp-cache.php:2648
2022
  msgid "Stale Super Cached Files"
2023
  msgstr ""
2024
 
2025
- #: wp-cache.php:2664
2026
  msgid "Hide file list"
2027
  msgstr ""
2028
 
2029
- #: wp-cache.php:2666
2030
  msgid "Too many cached files, no listing possible."
2031
  msgstr ""
2032
 
2033
- #: wp-cache.php:2668
2034
  msgid "List all cached files"
2035
  msgstr ""
2036
 
2037
- #: wp-cache.php:2671
2038
  msgid ""
2039
  "Expired files are files older than %s seconds