DB Cache Reloaded Fix - Version 2.2.4

Version Description

  • Add French (fr_FR) translation
  • Move cache folder from wp-contents/tmp to db-cache-reloaded-fix/cache to fix permission issue
  • No cache the complex queries including join query
  • Use WP Scheduler to schedule clean the expired cache
Download this release

Release Info

Developer ivankristianto
Plugin Icon wp plugin DB Cache Reloaded Fix
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

db-cache-reloaded.php CHANGED
@@ -4,7 +4,7 @@
4
  * Short Name: db_cache_reloaded
5
  * Description: The fastest cache engine for WordPress, that produces cache of database queries with easy configuration. (Disable and enable caching after update). Now compatible with WordPress 3.1.
6
  * Author: Ivan Kristianto
7
- * Version: 2.2.3
8
  * Requires at least: 2.7
9
  * Tested up to: 3.1.2
10
  * Tags: db cache, db cache reloaded, db cache reloaded fix
@@ -43,7 +43,7 @@ if ( !defined( 'DBCR_PATH' ) ) {
43
  }
44
  // Cache directory
45
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
46
- define( 'DBCR_CACHE_DIR', WP_CONTENT_DIR.'/tmp' );
47
  }
48
 
49
  // Check if we have required functions
@@ -91,13 +91,15 @@ class DBCacheReloaded {
91
  $this->dbcr_cache =& new pcache();
92
  }
93
 
94
- // Initialise plugin
95
- add_action( 'init', array( &$this, 'init' ) );
96
-
97
  // Install/Upgrade
98
- add_action( 'activate_'.plugin_basename( __FILE__ ), array( &$this, 'dbcr_install' ) );
 
99
  // Uninstall
100
- add_action( 'deactivate_'.plugin_basename( __FILE__ ), array( &$this, 'dbcr_uninstall' ) );
 
 
 
 
101
 
102
  // Add cleaning on publish and new comment
103
  // Posts
@@ -114,6 +116,8 @@ class DBCacheReloaded {
114
  add_action( 'delete_comment', array( &$this, 'dbcr_clear' ), 0 );
115
  add_action( 'switch_theme', array( &$this, 'dbcr_clear' ), 0 );
116
 
 
 
117
  // Display stats in footer
118
  add_action( 'wp_footer', 'loadstats', 999999 );
119
 
@@ -147,6 +151,8 @@ class DBCacheReloaded {
147
  function init() {
148
  load_plugin_textdomain( 'db-cache-reloaded', false, dirname( plugin_basename( __FILE__ ) ).'/lang' );
149
 
 
 
150
  // 2nd check
151
  global $wpdb;
152
  if ( isset( $this->config['enabled'] ) && $this->config['enabled']
@@ -266,7 +272,7 @@ class DBCacheReloaded {
266
  echo '</p></div>';
267
  } else {
268
  echo '<div id="message" class="error"><p>';
269
- _e('Caching can\'t be activated. Please <a href="http://codex.wordpress.org/Changing_File_Permissions" target="blank">chmod 755</a> <u>wp-content</u> folder', 'db-cache-reloaded');
270
  echo '</p></div>';
271
  }
272
  }
@@ -310,6 +316,12 @@ class DBCacheReloaded {
310
  $this->dbcr_cache->uninstall();
311
 
312
  @rmdir( DBCR_CACHE_DIR );
 
 
 
 
 
 
313
  }
314
 
315
  // Clears the cache folder
@@ -433,7 +445,7 @@ class DBCacheReloaded {
433
  <table class="form-table">
434
  <tr valign="top">
435
  <?php $this->dbcr_field_text( 'filter', __('Cache filter', 'db-cache-reloaded'),
436
- '<br/>'.__('Do not cache queries that contains this input contents. Divide different filters with \'|\' (vertical line, e.g. \'_posts|_postmeta\')', 'db-cache-reloaded'), 'size="100"' ); ?>
437
  </tr>
438
  <tr valign="top">
439
  <?php $this->dbcr_field_text( 'loadstat', __('Load stats template', 'db-cache-reloaded'),
@@ -589,7 +601,7 @@ function loadstats() {
589
  echo $result;
590
  }
591
 
592
- echo "\n<!-- Cached by DB Cache Reloaded -->\n";
593
  }
594
 
595
  } // END
4
  * Short Name: db_cache_reloaded
5
  * Description: The fastest cache engine for WordPress, that produces cache of database queries with easy configuration. (Disable and enable caching after update). Now compatible with WordPress 3.1.
6
  * Author: Ivan Kristianto
7
+ * Version: 2.2.4
8
  * Requires at least: 2.7
9
  * Tested up to: 3.1.2
10
  * Tags: db cache, db cache reloaded, db cache reloaded fix
43
  }
44
  // Cache directory
45
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
46
+ define( 'DBCR_CACHE_DIR', DBCR_PATH.'/cache' );
47
  }
48
 
49
  // Check if we have required functions
91
  $this->dbcr_cache =& new pcache();
92
  }
93
 
 
 
 
94
  // Install/Upgrade
95
+ //add_action( 'activate_'.plugin_basename( __FILE__ ), array( &$this, 'dbcr_install' ) );
96
+ register_activation_hook(__FILE__, array( &$this, 'dbcr_install'));
97
  // Uninstall
98
+ //add_action( 'deactivate_'.plugin_basename( __FILE__ ), array( &$this, 'dbcr_uninstall' ) );
99
+ register_deactivation_hook(__FILE__, array( &$this, 'dbcr_uninstall' ));
100
+
101
+ // Initialise plugin
102
+ add_action( 'init', array( &$this, 'init' ) );
103
 
104
  // Add cleaning on publish and new comment
105
  // Posts
116
  add_action( 'delete_comment', array( &$this, 'dbcr_clear' ), 0 );
117
  add_action( 'switch_theme', array( &$this, 'dbcr_clear' ), 0 );
118
 
119
+ add_action('clean_cache_event', array(&$this, 'hourly_clean'));
120
+
121
  // Display stats in footer
122
  add_action( 'wp_footer', 'loadstats', 999999 );
123
 
151
  function init() {
152
  load_plugin_textdomain( 'db-cache-reloaded', false, dirname( plugin_basename( __FILE__ ) ).'/lang' );
153
 
154
+ if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') )
155
+ wp_schedule_event(time(), 'hourly', 'clean_cache_event');
156
  // 2nd check
157
  global $wpdb;
158
  if ( isset( $this->config['enabled'] ) && $this->config['enabled']
272
  echo '</p></div>';
273
  } else {
274
  echo '<div id="message" class="error"><p>';
275
+ _e('Caching can\'t be activated. Please <a href="http://codex.wordpress.org/Changing_File_Permissions" target="blank">chmod 755</a> <u>wp-content/db-cache-reloaded-fix/cache</u> folder', 'db-cache-reloaded');
276
  echo '</p></div>';
277
  }
278
  }
316
  $this->dbcr_cache->uninstall();
317
 
318
  @rmdir( DBCR_CACHE_DIR );
319
+ wp_clear_scheduled_hook('clean_cache_event');
320
+ }
321
+
322
+ // This event will run hourly, and clean the expired cache
323
+ function hourly_clean(){
324
+ $this->dbcr_cache->clean();
325
  }
326
 
327
  // Clears the cache folder
445
  <table class="form-table">
446
  <tr valign="top">
447
  <?php $this->dbcr_field_text( 'filter', __('Cache filter', 'db-cache-reloaded'),
448
+ '<br/>'.__('Do not cache queries that contains this input contents. Divide different filters with \'|\' (vertical line, e.g. \'_posts|_postmeta\'). You can put \'JOIN\' as well if you want to exclude complex query', 'db-cache-reloaded'), 'size="100"' ); ?>
449
  </tr>
450
  <tr valign="top">
451
  <?php $this->dbcr_field_text( 'loadstat', __('Load stats template', 'db-cache-reloaded'),
601
  echo $result;
602
  }
603
 
604
+ echo "\n<!-- Cached by DB Cache Reloaded Fix -->\n";
605
  }
606
 
607
  } // END
db-functions.php CHANGED
@@ -24,16 +24,19 @@
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
 
 
 
 
 
 
27
  // Cache directory
28
- // Need this here, because some people may upgrade manually by overwriting files
29
- // without deactivating cache
30
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
31
- define( 'DBCR_CACHE_DIR', WP_CONTENT_DIR.'/tmp' );
32
  }
33
 
34
  class pcache {
35
- // Cache lifetime - by default 1800 sec = 30 min
36
- var $lifetime = 1800;
37
 
38
  // Base storage path for global data
39
  var $base_storage_global = null;
@@ -45,7 +48,7 @@ class pcache {
45
  var $storage = null;
46
 
47
  // All subdirs
48
- var $folders = array( 'options', 'links', 'terms', 'users', 'posts', '' );
49
 
50
  // Constructor
51
  function pcache() {
@@ -139,7 +142,7 @@ class pcache {
139
  @fwrite( $f, serialize( $value ) );
140
  @flock( $f, LOCK_UN );
141
  @fclose( $f );
142
- @chmod( $file, 0644 );
143
 
144
  return true;
145
  }
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
 
27
+ // Path to plugin
28
+ if ( !defined( 'DBCR_PATH' ) ) {
29
+ define( 'DBCR_PATH', dirname( __FILE__ ) );
30
+ }
31
+
32
  // Cache directory
 
 
33
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
34
+ define( 'DBCR_CACHE_DIR', DBCR_PATH.'/cache' );
35
  }
36
 
37
  class pcache {
38
+ // Cache lifetime - by default 86400 sec = 24 hours
39
+ var $lifetime = 86400;
40
 
41
  // Base storage path for global data
42
  var $base_storage_global = null;
48
  var $storage = null;
49
 
50
  // All subdirs
51
+ var $folders = array( 'options', 'links', 'terms', 'users', 'posts', 'joins', '' );
52
 
53
  // Constructor
54
  function pcache() {
142
  @fwrite( $f, serialize( $value ) );
143
  @flock( $f, LOCK_UN );
144
  @fclose( $f );
145
+ @chmod( $file, 0755 );
146
 
147
  return true;
148
  }
db-module-wrapper.php CHANGED
@@ -7,7 +7,7 @@ if ( !defined( 'DBCR_PATH' ) ) {
7
  }
8
  // Cache directory
9
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
10
- define( 'DBCR_CACHE_DIR', WP_CONTENT_DIR.'/tmp' );
11
  }
12
 
13
  // DB Module version (one or more digits for major, two digits for minor and revision numbers)
7
  }
8
  // Cache directory
9
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
10
+ define( 'DBCR_CACHE_DIR', WP_PLUGIN_DIR.'/cache' );
11
  }
12
 
13
  // DB Module version (one or more digits for major, two digits for minor and revision numbers)
db-module.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin URI: http://www.ivankristianto.com/web-development/programming/db-cache-reloaded-fix-for-wordpress-3-1/1784/
4
  Description: Database Caching Module provided by DB Cache Reloaded plugin With WordPress 3.1 compatibility.
5
  Author: Ivan Kristianto
6
- Version: 1.6.1 (bundled with DB Cache Reloaded 2.2)
7
  Author URI: http://www.ivankristianto.com
8
  Text Domain: db-cache-reloaded-fix
9
  */
@@ -70,11 +70,11 @@ if ( !defined( 'WP_PLUGIN_DIR' ) ) {
70
  }
71
  // Path to plugin
72
  if ( !defined( 'DBCR_PATH' ) ) {
73
- define( 'DBCR_PATH', WP_PLUGIN_DIR.'/db-cache-reloaded' );
74
  }
75
  // Cache directory
76
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
77
- define( 'DBCR_CACHE_DIR', WP_CONTENT_DIR.'/tmp' );
78
  }
79
 
80
  // DB Module version (one or more digits for major, two digits for minor and revision numbers)
@@ -657,12 +657,14 @@ class dbrc_wpdb {
657
  // require_once would be better, but some people deletes plugin without deactivating it first
658
  if ( @include_once( DBCR_PATH.'/db-functions.php' ) ) {
659
  $this->dbcr_config = unserialize( @file_get_contents( WP_CONTENT_DIR.'/db-config.ini' ) );
660
-
661
  $this->dbcr_cache =& new pcache();
662
- $this->dbcr_cache->lifetime = isset( $this->dbcr_config['timeout'] ) ? $this->dbcr_config['timeout'] : 5;
 
663
 
664
  // Clean unused
665
- $dbcheck = date('G')/4;
 
666
  if ( $dbcheck == intval( $dbcheck ) && ( !isset( $this->dbcr_config['lastclean'] )
667
  || $this->dbcr_config['lastclean'] < time() - 3600 ) ) {
668
  $this->dbcr_cache->clean();
@@ -672,7 +674,7 @@ class dbrc_wpdb {
672
  fwrite($file, serialize($this->dbcr_config));
673
  fclose($file);
674
  }
675
- }
676
 
677
  // cache only frontside
678
  if (
@@ -1281,10 +1283,10 @@ class dbrc_wpdb {
1281
  if ( preg_match( "/\\s*(insert|delete|update|replace|alter|SET NAMES|FOUND_ROWS|RAND)\\b/si", $query ) ) {
1282
  $dbcr_cacheable = false;
1283
  } elseif ( // For hard queries - skip them
1284
- !preg_match( "/\\s*(JOIN | \* |\*\,)/si", $query ) ||
1285
  // User-defined cache filters
1286
- ( isset( $config['filter'] ) && ( $config['filter'] != '' ) &&
1287
- preg_match( "/\\s*(".$config['filter'].")/si", $query ) ) ) {
1288
  $dbcr_cacheable = false;
1289
  }
1290
  }
@@ -1302,13 +1304,15 @@ class dbrc_wpdb {
1302
  $this->dbcr_cache->set_storage( $dbcr_db, 'users' );
1303
  } elseif ( strpos( $query, '_post' ) ) {
1304
  $this->dbcr_cache->set_storage( $dbcr_db, 'posts' );
 
 
1305
  } else {
1306
  $this->dbcr_cache->set_storage( $dbcr_db, '' );
1307
  }
1308
  }
1309
 
1310
  /* Debug part */
1311
- if ( isset( $config['debug'] ) && $config['debug'] ) {
1312
  if ( $dbcr_cacheable ) {
1313
  echo "\n<!-- cache: $query -->\n\n";
1314
  } else {
3
  Plugin URI: http://www.ivankristianto.com/web-development/programming/db-cache-reloaded-fix-for-wordpress-3-1/1784/
4
  Description: Database Caching Module provided by DB Cache Reloaded plugin With WordPress 3.1 compatibility.
5
  Author: Ivan Kristianto
6
+ Version: 1.6.1 (bundled with DB Cache Reloaded Fix 2.2.4)
7
  Author URI: http://www.ivankristianto.com
8
  Text Domain: db-cache-reloaded-fix
9
  */
70
  }
71
  // Path to plugin
72
  if ( !defined( 'DBCR_PATH' ) ) {
73
+ define( 'DBCR_PATH', dirname( __FILE__ ) );
74
  }
75
  // Cache directory
76
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
77
+ define( 'DBCR_CACHE_DIR', DBCR_PATH.'/cache' );
78
  }
79
 
80
  // DB Module version (one or more digits for major, two digits for minor and revision numbers)
657
  // require_once would be better, but some people deletes plugin without deactivating it first
658
  if ( @include_once( DBCR_PATH.'/db-functions.php' ) ) {
659
  $this->dbcr_config = unserialize( @file_get_contents( WP_CONTENT_DIR.'/db-config.ini' ) );
660
+ $this->dbcr_config['debug'] = false; //TODO: put this into option page
661
  $this->dbcr_cache =& new pcache();
662
+ $this->dbcr_cache->lifetime = isset( $this->dbcr_config['timeout'] ) ? $this->dbcr_config['timeout'] : 1800;
663
+ $this->dbcr_cache->lifetime *= 60; //convert to seconds
664
 
665
  // Clean unused
666
+ // Move to cron for better performance
667
+ /*$dbcheck = date('G')/4;
668
  if ( $dbcheck == intval( $dbcheck ) && ( !isset( $this->dbcr_config['lastclean'] )
669
  || $this->dbcr_config['lastclean'] < time() - 3600 ) ) {
670
  $this->dbcr_cache->clean();
674
  fwrite($file, serialize($this->dbcr_config));
675
  fclose($file);
676
  }
677
+ }*/
678
 
679
  // cache only frontside
680
  if (
1283
  if ( preg_match( "/\\s*(insert|delete|update|replace|alter|SET NAMES|FOUND_ROWS|RAND)\\b/si", $query ) ) {
1284
  $dbcr_cacheable = false;
1285
  } elseif ( // For hard queries - skip them
1286
+ //preg_match( "/\\s*(JOIN)/si", $query ) ||
1287
  // User-defined cache filters
1288
+ ( isset( $this->dbcr_config['filter'] ) && ( $this->dbcr_config['filter'] != '' ) &&
1289
+ preg_match( "/\\s*(".$this->dbcr_config['filter'].")/si", $query ) ) ) {
1290
  $dbcr_cacheable = false;
1291
  }
1292
  }
1304
  $this->dbcr_cache->set_storage( $dbcr_db, 'users' );
1305
  } elseif ( strpos( $query, '_post' ) ) {
1306
  $this->dbcr_cache->set_storage( $dbcr_db, 'posts' );
1307
+ } elseif ( strpos( $query, 'JOIN' ) ) {
1308
+ $this->dbcr_cache->set_storage( $dbcr_db, 'joins' );
1309
  } else {
1310
  $this->dbcr_cache->set_storage( $dbcr_db, '' );
1311
  }
1312
  }
1313
 
1314
  /* Debug part */
1315
+ if ( isset( $this->dbcr_config['debug'] ) && $this->dbcr_config['debug'] ) {
1316
  if ( $dbcr_cacheable ) {
1317
  echo "\n<!-- cache: $query -->\n\n";
1318
  } else {
db.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin URI: http://www.ivankristianto.com/web-development/programming/db-cache-reloaded-fix-for-wordpress-3-1/1784/
4
  Description: Database Caching Module provided by DB Cache Reloaded plugin With WordPress 3.1 compatibility.
5
  Author: Ivan Kristianto
6
- Version: 1.6.0 (bundled with DB Cache Reloaded 2.2.2)
7
  Author URI: http://www.ivankristianto.com
8
  Text Domain: db-cache-reloaded-fix
9
  */
@@ -74,7 +74,7 @@ if ( !defined( 'DBCR_PATH' ) ) {
74
  }
75
  // Cache directory
76
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
77
- define( 'DBCR_CACHE_DIR', WP_CONTENT_DIR.'/tmp' );
78
  }
79
 
80
  // DB Module version (one or more digits for major, two digits for minor and revision numbers)
3
  Plugin URI: http://www.ivankristianto.com/web-development/programming/db-cache-reloaded-fix-for-wordpress-3-1/1784/
4
  Description: Database Caching Module provided by DB Cache Reloaded plugin With WordPress 3.1 compatibility.
5
  Author: Ivan Kristianto
6
+ Version: 1.6.1 (bundled with DB Cache Reloaded 2.2.4)
7
  Author URI: http://www.ivankristianto.com
8
  Text Domain: db-cache-reloaded-fix
9
  */
74
  }
75
  // Cache directory
76
  if ( !defined( 'DBCR_CACHE_DIR' ) ) {
77
+ define( 'DBCR_CACHE_DIR', DBCR_PATH.'/cache' );
78
  }
79
 
80
  // DB Module version (one or more digits for major, two digits for minor and revision numbers)
lang/db-cache-reloaded-fr_FR.mo ADDED
Binary file
lang/db-cache-reloaded-fr_FR.po ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR Daniel Fruyski
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: \n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/db-cache-reloaded\n"
10
+ "POT-Creation-Date: 2009-12-06 15:40+0000\n"
11
+ "PO-Revision-Date: 2011-10-18 16:26-0800\n"
12
+ "Last-Translator: Mike Arias <mikea@inmotionhosting.com>\n"
13
+ "Language-Team: \n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: French\n"
18
+ "X-Poedit-Country: France\n"
19
+
20
+ #: db-cache-reloaded.php:157
21
+ msgid "<b>DB Cache Reloaded Error:</b> <code>wpdb</code> class is redefined, plugin cannot work!"
22
+ msgstr "<b>DB Erreur de rechargement de la mémoire cache:</b> <code>wpdp</code> classe est redéfinie, l'extension ne peut pas fonctionner! "
23
+
24
+ #: db-cache-reloaded.php:160
25
+ #, php-format
26
+ msgid "Previous definition is at %s."
27
+ msgstr "Définition précédente est à %s."
28
+
29
+ #: db-cache-reloaded.php:169
30
+ #, php-format
31
+ msgid "<b>DB Cache Reloaded Info:</b> caching is not enabled. Please go to the <a href=\"%s\">Options Page</a> to enable it."
32
+ msgstr "<b>DB Information de la mémoire cache rechargée:</b>mise en cache n'est pas activée. Veuillez vous rendre à <a href=\"%s\">Page d'options</a> afin de l'activée. "
33
+
34
+ #: db-cache-reloaded.php:173
35
+ #, php-format
36
+ msgid "<b>DB Cache Reloaded Error:</b> DB Module (<code>wpdb</code> class) is not loaded. Please open the <a href=\"%1$s\">Options Page</a>, disable caching (remember to save options) and enable it again. If this will not help, please check <a href=\"%2$s\">FAQ</a> how to do manual upgrade."
37
+ msgstr "<b>DB Erreur de la mémoire cache rechargée: </b> DB Module (<code>wpdb</code>class) n'est pas chargé. Veuillez ouvrir la <a href=\"%1$s\">Page d'options</a>, désactivez la mise en cache (n'oubliez pas de sauvegarder les options) et activée là de nouveau. Si cela ne vous aide pas, <a href=\"%2$s\">veuillez vérifier comment faire une mis à niveau manuelle</a>."
38
+
39
+ #: db-cache-reloaded.php:186
40
+ #, php-format
41
+ msgid "<b>DB Cache Reloaded Error:</b> DB Module is not up to date (detected version %1$s instead of %2$s). In order to fix this, please open the <a href=\"%3$s\">Options Page</a>, disable caching (remember to save options) and enable it again."
42
+ msgstr "<b>DB Erreur de la mémoire cache rechargée: </b> DB Module n'est pas à jour (version détecter %1$s au lieu de %2$s). Afin de résoudre ce problème, veuillez ouvrir la <a href=\"%3$s\">Page d'Options</a>, désactivez la mise en cache (n'oubliez pas de sauvegarder les options) et activer là de nouveau. "
43
+
44
+ #: db-cache-reloaded.php:251
45
+ msgid "Caching activated."
46
+ msgstr "Mise en cache activée."
47
+
48
+ #: db-cache-reloaded.php:255
49
+ msgid "Caching can't be activated. Please <a href=\"http://codex.wordpress.org/Changing_File_Permissions\" target=\"blank\">chmod 755</a> <u>wp-content</u> folder"
50
+ msgstr "Mise en cache ne peut pas être activée. Veuillez <a href=\"http://codex.wordpress.org/changing_file_Permissions\" target=\"blank\">chmod 755</a> <u> wp-content</u> dossier."
51
+
52
+ #: db-cache-reloaded.php:272
53
+ msgid "Caching deactivated. Cache files deleted."
54
+ msgstr "Mise en cache désactivée. Fichiers de la mémoire cache supprimés."
55
+
56
+ #: db-cache-reloaded.php:330
57
+ msgid "<!-- Generated in {timer} seconds. Made {queries} queries to database and {cached} cached queries. Memory used - {memory} -->"
58
+ msgstr "<!-- Générer en {timer} secondes. Faites {queries} les requêtes de base de données et {cached} les requêtes de la mémoire cache. Mémoire utilisée - {memory} -->"
59
+
60
+ #: db-cache-reloaded.php:352
61
+ msgid "Cache files deleted."
62
+ msgstr "Fichiers de la mémoire cache effacés. "
63
+
64
+ #: db-cache-reloaded.php:360
65
+ msgid "Expired cache files deleted."
66
+ msgstr "Fichiers périmés de la mémoire cache effacés. "
67
+
68
+ #: db-cache-reloaded.php:399
69
+ msgid "Settings saved."
70
+ msgstr "Réglages enregistrés."
71
+
72
+ #: db-cache-reloaded.php:403
73
+ msgid "Settings can't be saved. Please <a href=\"http://codex.wordpress.org/Changing_File_Permissions\" target=\"blank\">chmod 755</a> file <u>config.ini</u>"
74
+ msgstr "Réglages ne peuvent pas être enregistrés. Veuillez <a href=\"http://codex.wordpress.org/Changing_File_Permissions\" target=\"blank\">chmod 755</a>file <u>config.ini</u>"
75
+
76
+ #: db-cache-reloaded.php:411
77
+ msgid "DB Cache Reloaded - Options"
78
+ msgstr "DB la mémoire cache recharger – Options"
79
+
80
+ #: db-cache-reloaded.php:413
81
+ msgid "Configuration"
82
+ msgstr "Configuration"
83
+
84
+ #: db-cache-reloaded.php:416
85
+ msgid "Enable"
86
+ msgstr "Activer "
87
+
88
+ #: db-cache-reloaded.php:419
89
+ msgid "Expire a cached query after"
90
+ msgstr "Périmé une requête de la mémoire cache."
91
+
92
+ #: db-cache-reloaded.php:420
93
+ msgid "minutes. <em>(Expired files are deleted automatically)</em>"
94
+ msgstr "Minutes. <em>(Fichiers expirés sont automatiquement supprimés)</em>"
95
+
96
+ #: db-cache-reloaded.php:424
97
+ msgid "Additional options"
98
+ msgstr "Options supplémentaires"
99
+
100
+ #: db-cache-reloaded.php:427
101
+ msgid "Cache filter"
102
+ msgstr "Filtre de la mémoire cache"
103
+
104
+ #: db-cache-reloaded.php:428
105
+ msgid "Do not cache queries that contains this input contents. Divide different filters with '|' (vertical line, e.g. '_posts|_postmeta')"
106
+ msgstr "Ne mettez pas les requêtes de la mémoire cache qui contiennent cette entrée contenu. Diviser les différents filtres avec des '|' (ligne verticale, par exemple '_posts|_postmeta')"
107
+
108
+ #: db-cache-reloaded.php:431
109
+ msgid "Load stats template"
110
+ msgstr "Chargez le modèle statistique "
111
+
112
+ #: db-cache-reloaded.php:432
113
+ msgid "It shows resources usage statistics in your template footer. To disable view just leave this field empty.<br/>{timer} - generation time, {queries} - count of queries to DB, {cached} - cached queries, {memory} - memory"
114
+ msgstr "Ça présente les ressources statistique d'utilisation de votre modèle de pied de page. Pour désactiver cette mode laissez ce champ de saisie vide. <br/> {timer} – durée de génération, {queries} – nombres de requêtes à DB, {cached} – requêtes de la mémoire cache, {memory} – mémoire"
115
+
116
+ #: db-cache-reloaded.php:436
117
+ msgid "Advanced"
118
+ msgstr "Avancé"
119
+
120
+ #: db-cache-reloaded.php:440
121
+ msgid "Wrapper Mode uses different method to load DB Module. It is less efficient (at least one query is not cached; some plugins may increase this number) and a bit slower. It allows to use DB Cache Reloaded along with incompatible plugins, which tries to load its own DB Module. You can try it if your cached query count is zero or -1."
122
+ msgstr "Wrapper Mode utilise des différentes méthodes pour charger le module DB. C'est moins efficace (au moins une requête n'est pas à la mémoire cache;Certaines extensions peuvent augmenter ce nombre) et un peu plus lent. Il vous permet d'utiliser la DB mémoire cache rechargée avec les extensions incompatible, qui essaie de charger son propre module DB. Vous pouvez l'essayer si votre requête est zéro ou -1. "
123
+
124
+ #: db-cache-reloaded.php:443
125
+ #, php-format
126
+ msgid "Wrapper Mode requires at least PHP 5, and you are using PHP %s now. Please read the <a href=\"http://codex.wordpress.org/Switching_to_PHP5\">Switching to PHP5</a> article for information how to switch to PHP 5."
127
+ msgstr "Wrapper Mode nécessite au moins PHP 5, et en ce moment, vous utilisez PHP %s. Veuillez lire l' <a href=\"http:codex.wordpress.org/Switching_to_PHP5\">Switching to PHP5</a> article pour plus d'informations sur la façon de changer à PHP 5. "
128
+
129
+ #: db-cache-reloaded.php:449
130
+ msgid "Wrapper Mode is <strong>Enabled</strong>. In order to disable it, please disable cache first."
131
+ msgstr "Wrapper Mode est <strong>activée</strong>. Afin de le désactiver, veuillez premièrement désactiver la mémoire cache. "
132
+
133
+ #: db-cache-reloaded.php:451
134
+ msgid "Wrapper Mode is <strong>Disabled</strong>. In order to enable it, please disable cache first."
135
+ msgstr "Wrapper Mode est <strong>désactivée</strong>. Afin de le désactiver, veuillez premièrement désactiver la mémoire cache. "
136
+
137
+ #: db-cache-reloaded.php:455
138
+ msgid "Enable Wrapper Mode"
139
+ msgstr "Activer Wrapper Mode"
140
+
141
+ #: db-cache-reloaded.php:461
142
+ msgid "Save"
143
+ msgstr "Sauvegarder"
144
+
145
+ #: db-cache-reloaded.php:462
146
+ msgid "Clear the cache"
147
+ msgstr "Effacer la mémoire cache"
148
+
149
+ #: db-cache-reloaded.php:463
150
+ msgid "Clear the expired cache"
151
+ msgstr "Effacer la mémoire cache expirée"
152
+
153
+ #: db-module-wrapper.php:265
154
+ #: db-module.php:1383
155
+ #, php-format
156
+ msgid "<b>DB Cache Reloaded Error:</b> cannot include <code>db-functions.php</code> file. Please either reinstall plugin or remove <code>%s</code> file."
157
+ msgstr "<b>DB erreur de la mémoire cache:</b>ne peut pas inclure <code>db-functions.php</code>le fichier. Veuillez réinstaller l'extension ou retirer <code>%s</code> le fichier. "
158
+
159
+ #: db-module.php:1302
160
+ #, php-format
161
+ msgid "<strong>ERROR</strong>: WordPress %s requires MySQL 4.0.0 or higher"
162
+ msgstr "<strong>ERREUR</strong>: WordPress %s nécessite MySQL 4.0.0 ou supérieur"
163
+
164
+ #. Plugin Name of an extension
165
+ msgid "DB Cache Reloaded"
166
+ msgstr "DB la mémoire cache est rechargée. "
167
+
168
+ #. Plugin URI of an extension
169
+ msgid "http://www.poradnik-webmastera.com/projekty/db_cache_reloaded/"
170
+ msgstr "http://www.poradnik-webmastera.com/projekty/db_cache_reloaded/"
171
+
172
+ #. Description of an extension
173
+ msgid "The fastest cache engine for WordPress, that produces cache of database queries with easy configuration. (Disable and enable caching after update)"
174
+ msgstr "Le moteur de recherche le plus rapide pour Wordpress, qui produit des requêtes de base de données de configuration facile. "
175
+
176
+ #. Author of an extension
177
+ msgid "Daniel Fruyski"
178
+ msgstr "Daniel Fruyski"
179
+
180
+ #. Author URI of an extension
181
+ msgid "http://www.poradnik-webmastera.com/"
182
+ msgstr "http://www.poradnik-webmastera.com/"
183
+
log.txt ADDED
File without changes
readme.html CHANGED
@@ -27,7 +27,8 @@
27
  <p>Available translations:</p>
28
  <ul>
29
  <li>English</li>
30
- <li>Polish (pl_PL) - done by me</li>
 
31
  <li>Italian (it_IT) - thanks Iacopo</li>
32
  <li>Portuguese Brazilian (pt_BR) - thanks Calebe Aires</li>
33
  <li>Belorussian (be_BY) - thanks FatCow</li>
@@ -102,9 +103,30 @@ It saves information separately and also caches hidden requests to database.</p>
102
  <p>Note: when you use derivation, make sure you create object of your class very early, before queries are done. Otherwise number of queries shown in stats will be incorrect.</p>
103
 
104
  <h3>How to move default cache directory elsewhere?</h3>
105
- <p>By default DB Cache Reloaded saves cached queries in <code>wp-content/tmp</code> dir (or another, if you changed value of <code>WP_CONTENT_DIR</code> constant). If you want to change this location, please define <code>DBCR_CACHE_DIR</code> constant in your <code>wp-config.php</code> file - it should point to existing directory. DB Cache Reloaded will use it instead of default location.</p>
106
 
107
  <h2>Changelog</h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  <p>2.1</p>
109
  <ul>
110
  <li>Make plugin compatible with WordPress 3.0 (single site mode; multisite mode requires additional work);</li>
27
  <p>Available translations:</p>
28
  <ul>
29
  <li>English</li>
30
+ <li>French (fr_FR) - thanks InMotion Hosting</li>
31
+ <li>Polish (pl_PL)</li>
32
  <li>Italian (it_IT) - thanks Iacopo</li>
33
  <li>Portuguese Brazilian (pt_BR) - thanks Calebe Aires</li>
34
  <li>Belorussian (be_BY) - thanks FatCow</li>
103
  <p>Note: when you use derivation, make sure you create object of your class very early, before queries are done. Otherwise number of queries shown in stats will be incorrect.</p>
104
 
105
  <h3>How to move default cache directory elsewhere?</h3>
106
+ <p>By default DB Cache Reloaded saves cached queries in <code>wp-content/db-cache-reloaded-fix/cache</code> dir (or another, if you changed value of <code>WP_CONTENT_DIR</code> constant). If you want to change this location, please define <code>DBCR_CACHE_DIR</code> constant in your <code>wp-config.php</code> file - it should point to existing directory. DB Cache Reloaded will use it instead of default location.</p>
107
 
108
  <h2>Changelog</h2>
109
+ <p>2.2.4</p>
110
+ <ul>
111
+ <li>Add French (fr_FR) translation</li>
112
+ <li>Move cache folder from wp-contents/tmp to db-cache-reloaded-fix/cache to fix permission issue</li>
113
+ </ul>
114
+ <p>2.2.3</p>
115
+ <ul>
116
+ <li>Fix missing lang folder</li>
117
+ </ul>
118
+ <p>2.2.2</p>
119
+ <ul>
120
+ <li>Add zh_CN and zh_TW lang</li>
121
+ </ul>
122
+ <p>2.2.1</p>
123
+ <ul>
124
+ <li>Fix an error in db.php wrong path in DBCR_PATH thanks to Christian for remind me.</li>
125
+ </ul>
126
+ <p>2.2</p>
127
+ <ul>
128
+ <li>Now compatible with WordPress 3.1</li>
129
+ </ul>
130
  <p>2.1</p>
131
  <ul>
132
  <li>Make plugin compatible with WordPress 3.0 (single site mode; multisite mode requires additional work);</li>
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: ivankristianto
3
  Donate link: http://www.ivankristianto.com/portfolio/
4
  Tags: performance, caching, wp-cache, db-cache, cache
5
- Requires at least: 2.8
6
  Tested up to: 3.1.2
7
- Stable tag: 2.2.3
8
 
9
  The fastest cache engine for WordPress, that produces cache of database queries with easy configuration. Compatible with WordPress 3.1
10
 
@@ -31,19 +31,22 @@ TODO LIST:
31
  Available translations:
32
 
33
  * English
34
- * Polish (pl_PL) - done by me
 
35
  * Italian (it_IT) - thanks [Iacopo](http://www.iacchi.org/)
36
- * Portuguese Brazilian (pt_BR) - thanks [Calebe Aires](http://gattune.blog.br/)
37
- * Belorussian (be_BY) - thanks [FatCow](http://www.fatcow.com/)
38
- * Spanish (es_ES) - thanks [Dasumo](http://www.dasumo.com/)
39
- * Dutch (nl_NL) - thanks [Rene](http://wordpresspluginguide.com/)
40
- * Turkish (tr_TR) - thanks [wolkanca](http://wolkanca.com/)
41
  * Japanese (jp) - thanks wokamoto
42
  * German (de_DE) - thanks [Carsten Tauber](http://greatsolution.de/)
43
  * Chinese (zh_CN and zh_TW) - thanks [企鹅君](http://neverweep.com)
44
 
45
  [Changelog](http://wordpress.org/extend/plugins/db-cache-reloaded-fix/changelog/)
46
 
 
 
47
  Other interesting stuff:
48
 
49
  * Check out the my other WordPress plugins or web development [My Portfolio](http://goo.gl/OHQNc)
@@ -138,10 +141,16 @@ Note: when you use derivation, make sure you create object of your class very ea
138
 
139
  = How to move default cache directory elsewhere? =
140
 
141
- By default DB Cache Reloaded saves cached queries in `wp-content/tmp dir` (or another, if you changed value of `WP_CONTENT_DIR` constant). If you want to change this location, please define `DBCR_CACHE_DIR` constant in your `wp-config.php` file - it should point to existing directory. DB Cache Reloaded will use it instead of default location.
142
 
143
  == Changelog ==
144
 
 
 
 
 
 
 
145
  = 2.2.3 =
146
  * Fix missing lang folder
147
 
2
  Contributors: ivankristianto
3
  Donate link: http://www.ivankristianto.com/portfolio/
4
  Tags: performance, caching, wp-cache, db-cache, cache
5
+ Requires at least: 3.0
6
  Tested up to: 3.1.2
7
+ Stable tag: 2.2.4
8
 
9
  The fastest cache engine for WordPress, that produces cache of database queries with easy configuration. Compatible with WordPress 3.1
10
 
31
  Available translations:
32
 
33
  * English
34
+ * French (fr_FR) - thanks [InMotion Hosting](http://www.inmotionhosting.com/)
35
+ * Polish (pl_PL)
36
  * Italian (it_IT) - thanks [Iacopo](http://www.iacchi.org/)
37
+ * Portuguese Brazilian (pt_BR) - thanks Calebe Aires
38
+ * Belorussian (be_BY) - thanks FatCow
39
+ * Spanish (es_ES) - thanks Dasumo
40
+ * Dutch (nl_NL) - thanks Rene
41
+ * Turkish (tr_TR) - thanks wolkanca
42
  * Japanese (jp) - thanks wokamoto
43
  * German (de_DE) - thanks [Carsten Tauber](http://greatsolution.de/)
44
  * Chinese (zh_CN and zh_TW) - thanks [企鹅君](http://neverweep.com)
45
 
46
  [Changelog](http://wordpress.org/extend/plugins/db-cache-reloaded-fix/changelog/)
47
 
48
+ [Blog Post](http://goo.gl/UzwSf)
49
+
50
  Other interesting stuff:
51
 
52
  * Check out the my other WordPress plugins or web development [My Portfolio](http://goo.gl/OHQNc)
141
 
142
  = How to move default cache directory elsewhere? =
143
 
144
+ By default DB Cache Reloaded saves cached queries in `wp-content/db-cache-reloaded-fix/cache`. If you want to change this location, please define `DBCR_CACHE_DIR` constant in your `wp-config.php` file - it should point to existing directory. DB Cache Reloaded will use it instead of default location.
145
 
146
  == Changelog ==
147
 
148
+ = 2.2.4 =
149
+ * Add French (fr_FR) translation
150
+ * Move cache folder from wp-contents/tmp to db-cache-reloaded-fix/cache to fix permission issue
151
+ * No cache the complex queries including join query
152
+ * Use WP Scheduler to schedule clean the expired cache
153
+
154
  = 2.2.3 =
155
  * Fix missing lang folder
156