Version Description
[12/12/2018] = * CHANGE: The deletion of transients has been fully rewritten and is many times faster now! * CHANGE: Increased the time_limit * CHANGE: German translations have been updated
Download this release
Release Info
Developer | cageehv |
Plugin | Optimize Database after Deleting Revisions |
Version | 4.7.3 |
Comparing to | |
See all releases |
Code changes from version 4.7.2 to 4.7.3
- classes/odb-cleaner.php +1714 -1737
- language/rvg-optimize-database-de_DE.mo +0 -0
- language/rvg-optimize-database-de_DE.po +773 -241
- readme.txt +8 -3
- rvg-optimize-database.php +10 -5
classes/odb-cleaner.php
CHANGED
@@ -1,1738 +1,1715 @@
|
|
1 |
-
<?php
|
2 |
-
/************************************************************************************************
|
3 |
-
*
|
4 |
-
* CLEANER CLASS: DOING THE REAL CLEANING / OPTIMIZATION
|
5 |
-
*
|
6 |
-
************************************************************************************************/
|
7 |
-
?>
|
8 |
-
<?php
|
9 |
-
class ODB_Cleaner {
|
10 |
-
var $start_size;
|
11 |
-
var $nr_of_optimized_tables;
|
12 |
-
|
13 |
-
|
14 |
-
/********************************************************************************************
|
15 |
-
* CONSTRUCTOR
|
16 |
-
********************************************************************************************/
|
17 |
-
function __construct() {
|
18 |
-
} // __construct()
|
19 |
-
|
20 |
-
|
21 |
-
/********************************************************************************************
|
22 |
-
* RUN CLEANER
|
23 |
-
********************************************************************************************/
|
24 |
-
function odb_run_cleaner($scheduler, $analyzing = false) {
|
25 |
-
global $odb_class;
|
26 |
-
|
27 |
-
if(!$scheduler) {
|
28 |
-
if ($analyzing) {
|
29 |
-
echo '
|
30 |
-
<div id="odb-cleaner" class="odb-padding-left">
|
31 |
-
<div class="odb-title-bar">
|
32 |
-
<h2>'.__('Analyzing Database', $odb_class->odb_txt_domain).'</h2>
|
33 |
-
</div>
|
34 |
-
<br>
|
35 |
-
<br>
|
36 |
-
';
|
37 |
-
} else {
|
38 |
-
echo '
|
39 |
-
<div id="odb-cleaner" class="odb-padding-left">
|
40 |
-
<div class="odb-title-bar">
|
41 |
-
<h2>'.__('Cleaning Database', $odb_class->odb_txt_domain).'</h2>
|
42 |
-
</div>
|
43 |
-
<br>
|
44 |
-
<br>
|
45 |
-
';
|
46 |
-
}
|
47 |
-
} // if(!$scheduler)
|
48 |
-
|
49 |
-
// GET THE SIZE OF THE DATABASE BEFORE OPTIMIZATION
|
50 |
-
$this->start_size = $odb_class->odb_utilities_obj->odb_get_db_size();
|
51 |
-
|
52 |
-
// TIMESTAMP FOR LOG FILE - v4.6
|
53 |
-
$ct = ($scheduler) ? ' (cron)' : '';
|
54 |
-
|
55 |
-
$odb_class->log_arr["timestamp"] = current_time('YmdHis', 0);
|
56 |
-
$odb_class->log_arr["after"] = 0;
|
57 |
-
$odb_class->log_arr["before"] = 0;
|
58 |
-
$odb_class->log_arr["orphans"] = 0;
|
59 |
-
$odb_class->log_arr["pingbacks"] = 0;
|
60 |
-
$odb_class->log_arr["oembeds"] = 0;
|
61 |
-
$odb_class->log_arr["orphans"] = 0;
|
62 |
-
$odb_class->log_arr["revisions"] = 0;
|
63 |
-
$odb_class->log_arr["savings"] = 0;
|
64 |
-
$odb_class->log_arr["spam"] = 0;
|
65 |
-
$odb_class->log_arr["tables"] = 0;
|
66 |
-
$odb_class->log_arr["tags"] = 0;
|
67 |
-
$odb_class->log_arr["transients"] = 0;
|
68 |
-
$odb_class->log_arr["trash"] = 0;
|
69 |
-
|
70 |
-
/****************************************************************************************
|
71 |
-
* DELETE REVISIONS
|
72 |
-
****************************************************************************************/
|
73 |
-
if($odb_class->odb_rvg_options['delete_older'] == 'Y' || $odb_class->odb_rvg_options['rvg_revisions'] == 'Y') {
|
74 |
-
// FIND REVISIONS
|
75 |
-
$results_older_than = array();
|
76 |
-
if($odb_class->odb_rvg_options['delete_older'] == 'Y') {
|
77 |
-
$results_older_than = $this->odb_get_revisions_older_than();
|
78 |
-
}
|
79 |
-
|
80 |
-
$results_keep_revisions = array();
|
81 |
-
if($odb_class->odb_rvg_options['rvg_revisions'] == 'Y') {
|
82 |
-
$results_keep_revisions = $this->odb_get_revisions_keep_revisions();
|
83 |
-
}
|
84 |
-
|
85 |
-
$total_deleted = 0;
|
86 |
-
if(count($results_older_than) > 0 || count($results_keep_revisions) > 0) {
|
87 |
-
// WE HAVE REVISIONS TO DELETE!
|
88 |
-
if(!$scheduler) {
|
89 |
-
if ($analyzing) {
|
90 |
-
$msg1 = __('REVISIONS','rvg-optimize-database');
|
91 |
-
$msg2 = __('revisions', $odb_class->odb_txt_domain);
|
92 |
-
} else {
|
93 |
-
$msg1 = __('DELETED REVISIONS','rvg-optimize-database');
|
94 |
-
$msg2 = __('revisions deleted', $odb_class->odb_txt_domain);
|
95 |
-
}
|
96 |
-
?>
|
97 |
-
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
98 |
-
<tr>
|
99 |
-
<td colspan="4"><div class="odb-found"><?php echo $msg1?></div></td>
|
100 |
-
</tr>
|
101 |
-
<tr>
|
102 |
-
<th align="right" class="odb-border-bottom">#</th>
|
103 |
-
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
104 |
-
<th align="left" class="odb-border-bottom"><?php _e('post / page', $odb_class->odb_txt_domain);?></th>
|
105 |
-
<th align="left" class="odb-border-bottom"><?php _e('revision date', $odb_class->odb_txt_domain);?></th>
|
106 |
-
<th align="right" class="odb-border-bottom"><?php echo $msg2?></th>
|
107 |
-
</tr>
|
108 |
-
<?php
|
109 |
-
} // if(!$scheduler)
|
110 |
-
|
111 |
-
// LOOP THROUGH THE REVISIONS AND DELETE THEM
|
112 |
-
$total_deleted = $this->odb_delete_revisions($scheduler, $analyzing);
|
113 |
-
|
114 |
-
if(!$scheduler) {
|
115 |
-
if ($analyzing) {
|
116 |
-
$msg1 = __('total number of revisions', $odb_class->odb_txt_domain);
|
117 |
-
} else {
|
118 |
-
$msg1 = __('total number of revisions deleted', $odb_class->odb_txt_domain);
|
119 |
-
} // if (!$analyzing)
|
120 |
-
?>
|
121 |
-
<tr>
|
122 |
-
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg1 ?>: <?php echo $total_deleted?></td>
|
123 |
-
</tr>
|
124 |
-
</table>
|
125 |
-
<?php
|
126 |
-
} // if(!$scheduler)
|
127 |
-
} else {
|
128 |
-
if(!$scheduler) {
|
129 |
-
?>
|
130 |
-
<div class="odb-not-found">
|
131 |
-
<?php _e('No REVISIONS found to delete', $odb_class->odb_txt_domain);?>
|
132 |
-
</div>
|
133 |
-
<?php
|
134 |
-
} // if(!$scheduler)
|
135 |
-
} // if(count($results)>0)
|
136 |
-
|
137 |
-
// NUMBER OF DELETED REVISIONS FOR LOG FILE
|
138 |
-
$odb_class->log_arr["revisions"] = $total_deleted;
|
139 |
-
} // if($odb_class->odb_rvg_options['delete_older'] == 'Y' || $odb_class->odb_rvg_options['rvg_revisions'] == 'Y')
|
140 |
-
|
141 |
-
|
142 |
-
/****************************************************************************************
|
143 |
-
* DELETE TRASHED ITEMS
|
144 |
-
****************************************************************************************/
|
145 |
-
if($odb_class->odb_rvg_options['clear_trash'] == 'Y') {
|
146 |
-
// GET TRASHED POSTS / PAGES AND COMMENTS
|
147 |
-
$results = $this->odb_get_trash($analyzing);
|
148 |
-
|
149 |
-
$total_deleted = 0;
|
150 |
-
if(count($results)>0) {
|
151 |
-
// WE HAVE TRASH TO DELETE!
|
152 |
-
if(!$scheduler) {
|
153 |
-
if ($analyzing) {
|
154 |
-
$msg1 = __('TRASHED ITEMS', $odb_class->odb_txt_domain);
|
155 |
-
$msg2 = __('total number of trashed items', $odb_class->odb_txt_domain);
|
156 |
-
} else {
|
157 |
-
$msg1 = __('DELETED TRASHED ITEMS', $odb_class->odb_txt_domain);
|
158 |
-
$msg2 = __('total number of trashed items deleted', $odb_class->odb_txt_domain);
|
159 |
-
} // if ($analyzing)
|
160 |
-
?>
|
161 |
-
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
162 |
-
<tr>
|
163 |
-
<td colspan="4"><div class="odb-found">
|
164 |
-
<?php echo $msg1 ?>
|
165 |
-
</div></td>
|
166 |
-
</tr>
|
167 |
-
<tr>
|
168 |
-
<th align="right" class="odb-border-bottom">#</th>
|
169 |
-
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
170 |
-
<th align="left" class="odb-border-bottom"><?php _e('type', $odb_class->odb_txt_domain);?></th>
|
171 |
-
<th align="left" class="odb-border-bottom"><?php _e('IP address / title', $odb_class->odb_txt_domain);?></th>
|
172 |
-
<th align="left" nowrap="nowrap" class="odb-border-bottom"><?php _e('date', $odb_class->odb_txt_domain);?></th>
|
173 |
-
</tr>
|
174 |
-
<?php
|
175 |
-
} // if(!$scheduler)
|
176 |
-
|
177 |
-
// LOOP THROUGH THE TRASHED ITEMS AND DELETE THEM
|
178 |
-
$total_deleted = $this->odb_delete_trash($results, $scheduler, $analyzing);
|
179 |
-
|
180 |
-
if(!$scheduler) {
|
181 |
-
?>
|
182 |
-
<tr>
|
183 |
-
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
184 |
-
</tr>
|
185 |
-
</table>
|
186 |
-
<?php
|
187 |
-
} // if(!$scheduler)
|
188 |
-
} else {
|
189 |
-
if(!$scheduler) {
|
190 |
-
?>
|
191 |
-
<div class="odb-not-found">
|
192 |
-
<?php _e('No TRASHED ITEMS found to delete', $odb_class->odb_txt_domain);?>
|
193 |
-
</div>
|
194 |
-
<?php
|
195 |
-
} // if(!$scheduler)
|
196 |
-
} // if(count($results)>0)
|
197 |
-
|
198 |
-
// NUMBER OF DELETED TRASH FOR LOG FILE
|
199 |
-
$odb_class->log_arr["trash"] = $total_deleted;
|
200 |
-
} // if($odb_class->odb_rvg_options['clear_trash'] == 'Y')
|
201 |
-
|
202 |
-
|
203 |
-
/****************************************************************************************
|
204 |
-
* DELETE SPAMMED ITEMS
|
205 |
-
****************************************************************************************/
|
206 |
-
if($odb_class->odb_rvg_options['clear_spam'] == 'Y') {
|
207 |
-
// GET SPAMMED COMMENTS
|
208 |
-
$results = $this->odb_get_spam($analyzing);
|
209 |
-
|
210 |
-
$total_deleted = 0;
|
211 |
-
if(count($results)>0) {
|
212 |
-
// WE HAVE SPAM TO DELETE!
|
213 |
-
if (!$scheduler) {
|
214 |
-
if ($analyzing) {
|
215 |
-
$msg1 = __('SPAMMED ITEMS', $odb_class->odb_txt_domain);
|
216 |
-
$msg2 = __('total number of spammed items', $odb_class->odb_txt_domain);
|
217 |
-
} else {
|
218 |
-
$msg1 = __('DELETED SPAMMED ITEMS', $odb_class->odb_txt_domain);
|
219 |
-
$msg2 = __('total number of spammed items deleted', $odb_class->odb_txt_domain);
|
220 |
-
} // if ($analyzing)
|
221 |
-
?>
|
222 |
-
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
223 |
-
<tr>
|
224 |
-
<td colspan="4"><div class="odb-found">
|
225 |
-
<?php echo $msg1 ?>
|
226 |
-
</div></td>
|
227 |
-
</tr>
|
228 |
-
<tr>
|
229 |
-
<th align="right" class="odb-border-bottom">#</th>
|
230 |
-
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
231 |
-
<th align="left" class="odb-border-bottom"><?php _e('comment author', $odb_class->odb_txt_domain);?></th>
|
232 |
-
<th align="left" class="odb-border-bottom"><?php _e('comment author email', $odb_class->odb_txt_domain);?></th>
|
233 |
-
<th align="left" nowrap="nowrap" class="odb-border-bottom"><?php _e('comment date', $odb_class->odb_txt_domain);?></th>
|
234 |
-
</tr>
|
235 |
-
<?php
|
236 |
-
} // if (!$scheduler)
|
237 |
-
|
238 |
-
// LOOP THROUGH SPAMMED ITEMS AND DELETE THEM
|
239 |
-
$total_deleted = $this->odb_delete_spam($results, $scheduler, $analyzing);
|
240 |
-
|
241 |
-
if (!$scheduler) {
|
242 |
-
?>
|
243 |
-
<tr>
|
244 |
-
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
245 |
-
</tr>
|
246 |
-
</table>
|
247 |
-
<?php
|
248 |
-
} // if (!$scheduler)
|
249 |
-
} else{
|
250 |
-
if (!$scheduler) {
|
251 |
-
?>
|
252 |
-
<div class="odb-not-found">
|
253 |
-
<?php _e('No SPAMMED ITEMS found to delete', $odb_class->odb_txt_domain);?>
|
254 |
-
</div>
|
255 |
-
<?php
|
256 |
-
} // if (!$scheduler)
|
257 |
-
} // if(count($results)>0)
|
258 |
-
|
259 |
-
// NUMBER OF SPAM DELETED FOR LOG FILE
|
260 |
-
$odb_class->log_arr["spam"] = $total_deleted;
|
261 |
-
} // if($odb_class->odb_rvg_options['clear_spam'] == 'Y')
|
262 |
-
|
263 |
-
|
264 |
-
/****************************************************************************************
|
265 |
-
* DELETE UNUSED TAGS
|
266 |
-
****************************************************************************************/
|
267 |
-
if($odb_class->odb_rvg_options['clear_tags'] == 'Y') {
|
268 |
-
// GET UNUSED TAGS
|
269 |
-
$results = $this->odb_get_unused_tags($analyzing);
|
270 |
-
|
271 |
-
$total_deleted = 0;
|
272 |
-
|
273 |
-
if(count($results)>0) {
|
274 |
-
// WE HAVE TAGS TO DELETE!
|
275 |
-
if (!$scheduler) {
|
276 |
-
if ($analyzing) {
|
277 |
-
$msg1 = __('UNUSED TAGS', $odb_class->odb_txt_domain);
|
278 |
-
$msg2 = __('total number of unused tags', $odb_class->odb_txt_domain);
|
279 |
-
} else {
|
280 |
-
$msg1 = __('DELETED UNUSED TAGS', $odb_class->odb_txt_domain);
|
281 |
-
$msg2 = __('total number of unused tags deleted', $odb_class->odb_txt_domain);
|
282 |
-
}
|
283 |
-
?>
|
284 |
-
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
285 |
-
<tr>
|
286 |
-
<td colspan="4"><div class="odb-found">
|
287 |
-
<?php echo $msg1 ?>
|
288 |
-
</div></td>
|
289 |
-
</tr>
|
290 |
-
<tr>
|
291 |
-
<th align="right" class="odb-border-bottom">#</th>
|
292 |
-
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
293 |
-
<th align="left" class="odb-border-bottom"><?php _e('tag', $odb_class->odb_txt_domain);?></th>
|
294 |
-
</tr>
|
295 |
-
<?php
|
296 |
-
} // if (!$scheduler)
|
297 |
-
|
298 |
-
// LOOP THROUGH UNUSED TAGS AND DELETE THEM
|
299 |
-
$total_deleted = $this->odb_delete_unused_tags($results, $scheduler, $analyzing);
|
300 |
-
|
301 |
-
if (!$scheduler) {
|
302 |
-
?>
|
303 |
-
<tr>
|
304 |
-
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
305 |
-
</tr>
|
306 |
-
</table>
|
307 |
-
<?php
|
308 |
-
} // if (!$scheduler)
|
309 |
-
} else {
|
310 |
-
if (!$scheduler) {
|
311 |
-
?>
|
312 |
-
<div class="odb-not-found">
|
313 |
-
<?php _e('No UNUSED TAGE found to delete', $odb_class->odb_txt_domain);?>
|
314 |
-
</div>
|
315 |
-
<?php
|
316 |
-
} // if (!$scheduler)
|
317 |
-
} // if(count($results)>0)
|
318 |
-
|
319 |
-
// NUMBER OF SPAM DELETED FOR LOG FILE
|
320 |
-
$odb_class->log_arr["tags"] = $total_deleted;
|
321 |
-
} // if($odb_class->odb_rvg_options['clear_spam'] == 'Y')
|
322 |
-
|
323 |
-
|
324 |
-
/****************************************************************************************
|
325 |
-
* DELETE EXPIRED TRANSIENTS
|
326 |
-
****************************************************************************************/
|
327 |
-
if($odb_class->odb_rvg_options['clear_transients']
|
328 |
-
//
|
329 |
-
$
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
// LOOP THROUGH
|
369 |
-
$
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
<
|
374 |
-
|
375 |
-
|
376 |
-
</
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
<
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
}
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
if($odb_class->odb_rvg_options['
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
<tr>
|
425 |
-
<
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
if(!$scheduler)
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
<tr>
|
487 |
-
<
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
if(!$scheduler)
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
<tr>
|
551 |
-
<
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
<th align="
|
557 |
-
<th align="left" class="odb-border-bottom"><?php _e('
|
558 |
-
<th align="left" class="odb-border-bottom"><?php _e('
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
if(!$scheduler)
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
<
|
611 |
-
<
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
<th class="odb-border-bottom" align="right"
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
if(!$scheduler)
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
$odb_class->log_arr["
|
648 |
-
//
|
649 |
-
$odb_class->log_arr["
|
650 |
-
|
651 |
-
|
652 |
-
$odb_class->
|
653 |
-
|
654 |
-
$
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
<
|
669 |
-
<
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
<
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
<td align="right"
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
<td align="right"
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
<td align="right" class="odb-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
$
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
<
|
716 |
-
|
717 |
-
<?php
|
718 |
-
|
719 |
-
|
720 |
-
<
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
}
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
&
|
750 |
-
|
751 |
-
<?php
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
$
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
$in
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
p1.`
|
798 |
-
p1.`
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
$prefix,
|
808 |
-
$prefix,
|
809 |
-
$
|
810 |
-
$
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
$index
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
$
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
$in
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
$
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
$prefix,
|
884 |
-
$prefix,
|
885 |
-
$
|
886 |
-
$
|
887 |
-
$
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
$index
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
$
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
$
|
917 |
-
$
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
<td align="
|
925 |
-
<td
|
926 |
-
<td valign="top" class="odb-bold"><?php echo $results[$i]['
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
$
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
$
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
<td align="
|
962 |
-
<td
|
963 |
-
<td valign="top"><?php
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
if
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
`
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
`
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
$index
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
$
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
<td align="
|
1070 |
-
<td valign="top"><?php echo $results[$i]['
|
1071 |
-
<td valign="top"><?php echo $results[$i]['
|
1072 |
-
<td valign="top"
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
$
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
$
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
$
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
`
|
1128 |
-
`
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
$
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
<td align="
|
1158 |
-
<td valign="top"><?php echo $results[$i]['
|
1159 |
-
<td valign="top"><?php echo $results[$i]['
|
1160 |
-
<td valign="top"
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
$
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
$
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
AND b.
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
$
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
<td align="
|
1235 |
-
<td valign="top"><?php echo $results[$i]['
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
$
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
$
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
/********************************************************************************************
|
1283 |
-
* DELETE TRANSIENTS (v4.3
|
1284 |
-
********************************************************************************************/
|
1285 |
-
function
|
1286 |
-
global $wpdb, $odb_class;
|
1287 |
-
|
1288 |
-
$
|
1289 |
-
|
1290 |
-
|
1291 |
-
$
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
)
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
for($i=0; $i<count($results); $i++)
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
`
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
$query = "OPTIMIZE TABLE " . $table_name;
|
1716 |
-
return $wpdb->get_results($query);
|
1717 |
-
|
1718 |
-
/* // https://www.percona.com/blog/2010/12/09/mysql-optimize-tables-innodb-stop/
|
1719 |
-
$query = "SHOW KEYS FROM " . $table_name . " WHERE Key_name <> 'PRIMARY'";
|
1720 |
-
$result = $wpdb->get_results($query);
|
1721 |
-
if (count($result) > 0) {
|
1722 |
-
for ($i = 0; $i < count($result); $i++) {
|
1723 |
-
$key_name = $result[$i]->Key_name;
|
1724 |
-
|
1725 |
-
$query = "ALTER TABLE " . $table_name . " DROP KEY " . $key_name;
|
1726 |
-
$result = $wpdb->get_results($query);
|
1727 |
-
|
1728 |
-
$query = "ALTER TABLE " . $table_name . " add key(" . $key_name . ")";
|
1729 |
-
$result = $wpdb->get_results($query);
|
1730 |
-
} // for ($i = 0; $i < count($result); $i++)
|
1731 |
-
return __('<span class="odb-optimized">TABLE OPTIMIZED</span>', 'rvg-optimize-database');
|
1732 |
-
} else {
|
1733 |
-
return __('Table is already up to date', 'rvg-optimize-database');
|
1734 |
-
} // if (count($result) > 0*/
|
1735 |
-
} // odb_optimize_innodb()
|
1736 |
-
|
1737 |
-
} // ODB_Cleaner
|
1738 |
?>
|
1 |
+
<?php
|
2 |
+
/************************************************************************************************
|
3 |
+
*
|
4 |
+
* CLEANER CLASS: DOING THE REAL CLEANING / OPTIMIZATION
|
5 |
+
*
|
6 |
+
************************************************************************************************/
|
7 |
+
?>
|
8 |
+
<?php
|
9 |
+
class ODB_Cleaner {
|
10 |
+
var $start_size;
|
11 |
+
var $nr_of_optimized_tables;
|
12 |
+
|
13 |
+
|
14 |
+
/********************************************************************************************
|
15 |
+
* CONSTRUCTOR
|
16 |
+
********************************************************************************************/
|
17 |
+
function __construct() {
|
18 |
+
} // __construct()
|
19 |
+
|
20 |
+
|
21 |
+
/********************************************************************************************
|
22 |
+
* RUN CLEANER
|
23 |
+
********************************************************************************************/
|
24 |
+
function odb_run_cleaner($scheduler, $analyzing = false) {
|
25 |
+
global $odb_class;
|
26 |
+
|
27 |
+
if(!$scheduler) {
|
28 |
+
if ($analyzing) {
|
29 |
+
echo '
|
30 |
+
<div id="odb-cleaner" class="odb-padding-left">
|
31 |
+
<div class="odb-title-bar">
|
32 |
+
<h2>'.__('Analyzing Database', $odb_class->odb_txt_domain).'</h2>
|
33 |
+
</div>
|
34 |
+
<br>
|
35 |
+
<br>
|
36 |
+
';
|
37 |
+
} else {
|
38 |
+
echo '
|
39 |
+
<div id="odb-cleaner" class="odb-padding-left">
|
40 |
+
<div class="odb-title-bar">
|
41 |
+
<h2>'.__('Cleaning Database', $odb_class->odb_txt_domain).'</h2>
|
42 |
+
</div>
|
43 |
+
<br>
|
44 |
+
<br>
|
45 |
+
';
|
46 |
+
}
|
47 |
+
} // if(!$scheduler)
|
48 |
+
|
49 |
+
// GET THE SIZE OF THE DATABASE BEFORE OPTIMIZATION
|
50 |
+
$this->start_size = $odb_class->odb_utilities_obj->odb_get_db_size();
|
51 |
+
|
52 |
+
// TIMESTAMP FOR LOG FILE - v4.6
|
53 |
+
$ct = ($scheduler) ? ' (cron)' : '';
|
54 |
+
|
55 |
+
$odb_class->log_arr["timestamp"] = current_time('YmdHis', 0);
|
56 |
+
$odb_class->log_arr["after"] = 0;
|
57 |
+
$odb_class->log_arr["before"] = 0;
|
58 |
+
$odb_class->log_arr["orphans"] = 0;
|
59 |
+
$odb_class->log_arr["pingbacks"] = 0;
|
60 |
+
$odb_class->log_arr["oembeds"] = 0;
|
61 |
+
$odb_class->log_arr["orphans"] = 0;
|
62 |
+
$odb_class->log_arr["revisions"] = 0;
|
63 |
+
$odb_class->log_arr["savings"] = 0;
|
64 |
+
$odb_class->log_arr["spam"] = 0;
|
65 |
+
$odb_class->log_arr["tables"] = 0;
|
66 |
+
$odb_class->log_arr["tags"] = 0;
|
67 |
+
$odb_class->log_arr["transients"] = 0;
|
68 |
+
$odb_class->log_arr["trash"] = 0;
|
69 |
+
|
70 |
+
/****************************************************************************************
|
71 |
+
* DELETE REVISIONS
|
72 |
+
****************************************************************************************/
|
73 |
+
if($odb_class->odb_rvg_options['delete_older'] == 'Y' || $odb_class->odb_rvg_options['rvg_revisions'] == 'Y') {
|
74 |
+
// FIND REVISIONS
|
75 |
+
$results_older_than = array();
|
76 |
+
if($odb_class->odb_rvg_options['delete_older'] == 'Y') {
|
77 |
+
$results_older_than = $this->odb_get_revisions_older_than();
|
78 |
+
}
|
79 |
+
|
80 |
+
$results_keep_revisions = array();
|
81 |
+
if($odb_class->odb_rvg_options['rvg_revisions'] == 'Y') {
|
82 |
+
$results_keep_revisions = $this->odb_get_revisions_keep_revisions();
|
83 |
+
}
|
84 |
+
|
85 |
+
$total_deleted = 0;
|
86 |
+
if(count($results_older_than) > 0 || count($results_keep_revisions) > 0) {
|
87 |
+
// WE HAVE REVISIONS TO DELETE!
|
88 |
+
if(!$scheduler) {
|
89 |
+
if ($analyzing) {
|
90 |
+
$msg1 = __('REVISIONS','rvg-optimize-database');
|
91 |
+
$msg2 = __('revisions', $odb_class->odb_txt_domain);
|
92 |
+
} else {
|
93 |
+
$msg1 = __('DELETED REVISIONS','rvg-optimize-database');
|
94 |
+
$msg2 = __('revisions deleted', $odb_class->odb_txt_domain);
|
95 |
+
}
|
96 |
+
?>
|
97 |
+
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
98 |
+
<tr>
|
99 |
+
<td colspan="4"><div class="odb-found"><?php echo $msg1?></div></td>
|
100 |
+
</tr>
|
101 |
+
<tr>
|
102 |
+
<th align="right" class="odb-border-bottom">#</th>
|
103 |
+
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
104 |
+
<th align="left" class="odb-border-bottom"><?php _e('post / page', $odb_class->odb_txt_domain);?></th>
|
105 |
+
<th align="left" class="odb-border-bottom"><?php _e('revision date', $odb_class->odb_txt_domain);?></th>
|
106 |
+
<th align="right" class="odb-border-bottom"><?php echo $msg2?></th>
|
107 |
+
</tr>
|
108 |
+
<?php
|
109 |
+
} // if(!$scheduler)
|
110 |
+
|
111 |
+
// LOOP THROUGH THE REVISIONS AND DELETE THEM
|
112 |
+
$total_deleted = $this->odb_delete_revisions($scheduler, $analyzing);
|
113 |
+
|
114 |
+
if(!$scheduler) {
|
115 |
+
if ($analyzing) {
|
116 |
+
$msg1 = __('total number of revisions', $odb_class->odb_txt_domain);
|
117 |
+
} else {
|
118 |
+
$msg1 = __('total number of revisions deleted', $odb_class->odb_txt_domain);
|
119 |
+
} // if (!$analyzing)
|
120 |
+
?>
|
121 |
+
<tr>
|
122 |
+
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg1 ?>: <?php echo $total_deleted?></td>
|
123 |
+
</tr>
|
124 |
+
</table>
|
125 |
+
<?php
|
126 |
+
} // if(!$scheduler)
|
127 |
+
} else {
|
128 |
+
if(!$scheduler) {
|
129 |
+
?>
|
130 |
+
<div class="odb-not-found">
|
131 |
+
<?php _e('No REVISIONS found to delete', $odb_class->odb_txt_domain);?>
|
132 |
+
</div>
|
133 |
+
<?php
|
134 |
+
} // if(!$scheduler)
|
135 |
+
} // if(count($results)>0)
|
136 |
+
|
137 |
+
// NUMBER OF DELETED REVISIONS FOR LOG FILE
|
138 |
+
$odb_class->log_arr["revisions"] = $total_deleted;
|
139 |
+
} // if($odb_class->odb_rvg_options['delete_older'] == 'Y' || $odb_class->odb_rvg_options['rvg_revisions'] == 'Y')
|
140 |
+
|
141 |
+
|
142 |
+
/****************************************************************************************
|
143 |
+
* DELETE TRASHED ITEMS
|
144 |
+
****************************************************************************************/
|
145 |
+
if($odb_class->odb_rvg_options['clear_trash'] == 'Y') {
|
146 |
+
// GET TRASHED POSTS / PAGES AND COMMENTS
|
147 |
+
$results = $this->odb_get_trash($analyzing);
|
148 |
+
|
149 |
+
$total_deleted = 0;
|
150 |
+
if(count($results)>0) {
|
151 |
+
// WE HAVE TRASH TO DELETE!
|
152 |
+
if(!$scheduler) {
|
153 |
+
if ($analyzing) {
|
154 |
+
$msg1 = __('TRASHED ITEMS', $odb_class->odb_txt_domain);
|
155 |
+
$msg2 = __('total number of trashed items', $odb_class->odb_txt_domain);
|
156 |
+
} else {
|
157 |
+
$msg1 = __('DELETED TRASHED ITEMS', $odb_class->odb_txt_domain);
|
158 |
+
$msg2 = __('total number of trashed items deleted', $odb_class->odb_txt_domain);
|
159 |
+
} // if ($analyzing)
|
160 |
+
?>
|
161 |
+
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
162 |
+
<tr>
|
163 |
+
<td colspan="4"><div class="odb-found">
|
164 |
+
<?php echo $msg1 ?>
|
165 |
+
</div></td>
|
166 |
+
</tr>
|
167 |
+
<tr>
|
168 |
+
<th align="right" class="odb-border-bottom">#</th>
|
169 |
+
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
170 |
+
<th align="left" class="odb-border-bottom"><?php _e('type', $odb_class->odb_txt_domain);?></th>
|
171 |
+
<th align="left" class="odb-border-bottom"><?php _e('IP address / title', $odb_class->odb_txt_domain);?></th>
|
172 |
+
<th align="left" nowrap="nowrap" class="odb-border-bottom"><?php _e('date', $odb_class->odb_txt_domain);?></th>
|
173 |
+
</tr>
|
174 |
+
<?php
|
175 |
+
} // if(!$scheduler)
|
176 |
+
|
177 |
+
// LOOP THROUGH THE TRASHED ITEMS AND DELETE THEM
|
178 |
+
$total_deleted = $this->odb_delete_trash($results, $scheduler, $analyzing);
|
179 |
+
|
180 |
+
if(!$scheduler) {
|
181 |
+
?>
|
182 |
+
<tr>
|
183 |
+
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
184 |
+
</tr>
|
185 |
+
</table>
|
186 |
+
<?php
|
187 |
+
} // if(!$scheduler)
|
188 |
+
} else {
|
189 |
+
if(!$scheduler) {
|
190 |
+
?>
|
191 |
+
<div class="odb-not-found">
|
192 |
+
<?php _e('No TRASHED ITEMS found to delete', $odb_class->odb_txt_domain);?>
|
193 |
+
</div>
|
194 |
+
<?php
|
195 |
+
} // if(!$scheduler)
|
196 |
+
} // if(count($results)>0)
|
197 |
+
|
198 |
+
// NUMBER OF DELETED TRASH FOR LOG FILE
|
199 |
+
$odb_class->log_arr["trash"] = $total_deleted;
|
200 |
+
} // if($odb_class->odb_rvg_options['clear_trash'] == 'Y')
|
201 |
+
|
202 |
+
|
203 |
+
/****************************************************************************************
|
204 |
+
* DELETE SPAMMED ITEMS
|
205 |
+
****************************************************************************************/
|
206 |
+
if($odb_class->odb_rvg_options['clear_spam'] == 'Y') {
|
207 |
+
// GET SPAMMED COMMENTS
|
208 |
+
$results = $this->odb_get_spam($analyzing);
|
209 |
+
|
210 |
+
$total_deleted = 0;
|
211 |
+
if(count($results)>0) {
|
212 |
+
// WE HAVE SPAM TO DELETE!
|
213 |
+
if (!$scheduler) {
|
214 |
+
if ($analyzing) {
|
215 |
+
$msg1 = __('SPAMMED ITEMS', $odb_class->odb_txt_domain);
|
216 |
+
$msg2 = __('total number of spammed items', $odb_class->odb_txt_domain);
|
217 |
+
} else {
|
218 |
+
$msg1 = __('DELETED SPAMMED ITEMS', $odb_class->odb_txt_domain);
|
219 |
+
$msg2 = __('total number of spammed items deleted', $odb_class->odb_txt_domain);
|
220 |
+
} // if ($analyzing)
|
221 |
+
?>
|
222 |
+
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
223 |
+
<tr>
|
224 |
+
<td colspan="4"><div class="odb-found">
|
225 |
+
<?php echo $msg1 ?>
|
226 |
+
</div></td>
|
227 |
+
</tr>
|
228 |
+
<tr>
|
229 |
+
<th align="right" class="odb-border-bottom">#</th>
|
230 |
+
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
231 |
+
<th align="left" class="odb-border-bottom"><?php _e('comment author', $odb_class->odb_txt_domain);?></th>
|
232 |
+
<th align="left" class="odb-border-bottom"><?php _e('comment author email', $odb_class->odb_txt_domain);?></th>
|
233 |
+
<th align="left" nowrap="nowrap" class="odb-border-bottom"><?php _e('comment date', $odb_class->odb_txt_domain);?></th>
|
234 |
+
</tr>
|
235 |
+
<?php
|
236 |
+
} // if (!$scheduler)
|
237 |
+
|
238 |
+
// LOOP THROUGH SPAMMED ITEMS AND DELETE THEM
|
239 |
+
$total_deleted = $this->odb_delete_spam($results, $scheduler, $analyzing);
|
240 |
+
|
241 |
+
if (!$scheduler) {
|
242 |
+
?>
|
243 |
+
<tr>
|
244 |
+
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
245 |
+
</tr>
|
246 |
+
</table>
|
247 |
+
<?php
|
248 |
+
} // if (!$scheduler)
|
249 |
+
} else{
|
250 |
+
if (!$scheduler) {
|
251 |
+
?>
|
252 |
+
<div class="odb-not-found">
|
253 |
+
<?php _e('No SPAMMED ITEMS found to delete', $odb_class->odb_txt_domain);?>
|
254 |
+
</div>
|
255 |
+
<?php
|
256 |
+
} // if (!$scheduler)
|
257 |
+
} // if(count($results)>0)
|
258 |
+
|
259 |
+
// NUMBER OF SPAM DELETED FOR LOG FILE
|
260 |
+
$odb_class->log_arr["spam"] = $total_deleted;
|
261 |
+
} // if($odb_class->odb_rvg_options['clear_spam'] == 'Y')
|
262 |
+
|
263 |
+
|
264 |
+
/****************************************************************************************
|
265 |
+
* DELETE UNUSED TAGS
|
266 |
+
****************************************************************************************/
|
267 |
+
if($odb_class->odb_rvg_options['clear_tags'] == 'Y') {
|
268 |
+
// GET UNUSED TAGS
|
269 |
+
$results = $this->odb_get_unused_tags($analyzing);
|
270 |
+
|
271 |
+
$total_deleted = 0;
|
272 |
+
|
273 |
+
if(count($results)>0) {
|
274 |
+
// WE HAVE TAGS TO DELETE!
|
275 |
+
if (!$scheduler) {
|
276 |
+
if ($analyzing) {
|
277 |
+
$msg1 = __('UNUSED TAGS', $odb_class->odb_txt_domain);
|
278 |
+
$msg2 = __('total number of unused tags', $odb_class->odb_txt_domain);
|
279 |
+
} else {
|
280 |
+
$msg1 = __('DELETED UNUSED TAGS', $odb_class->odb_txt_domain);
|
281 |
+
$msg2 = __('total number of unused tags deleted', $odb_class->odb_txt_domain);
|
282 |
+
}
|
283 |
+
?>
|
284 |
+
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
285 |
+
<tr>
|
286 |
+
<td colspan="4"><div class="odb-found">
|
287 |
+
<?php echo $msg1 ?>
|
288 |
+
</div></td>
|
289 |
+
</tr>
|
290 |
+
<tr>
|
291 |
+
<th align="right" class="odb-border-bottom">#</th>
|
292 |
+
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
293 |
+
<th align="left" class="odb-border-bottom"><?php _e('tag', $odb_class->odb_txt_domain);?></th>
|
294 |
+
</tr>
|
295 |
+
<?php
|
296 |
+
} // if (!$scheduler)
|
297 |
+
|
298 |
+
// LOOP THROUGH UNUSED TAGS AND DELETE THEM
|
299 |
+
$total_deleted = $this->odb_delete_unused_tags($results, $scheduler, $analyzing);
|
300 |
+
|
301 |
+
if (!$scheduler) {
|
302 |
+
?>
|
303 |
+
<tr>
|
304 |
+
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
305 |
+
</tr>
|
306 |
+
</table>
|
307 |
+
<?php
|
308 |
+
} // if (!$scheduler)
|
309 |
+
} else {
|
310 |
+
if (!$scheduler) {
|
311 |
+
?>
|
312 |
+
<div class="odb-not-found">
|
313 |
+
<?php _e('No UNUSED TAGE found to delete', $odb_class->odb_txt_domain);?>
|
314 |
+
</div>
|
315 |
+
<?php
|
316 |
+
} // if (!$scheduler)
|
317 |
+
} // if(count($results)>0)
|
318 |
+
|
319 |
+
// NUMBER OF SPAM DELETED FOR LOG FILE
|
320 |
+
$odb_class->log_arr["tags"] = $total_deleted;
|
321 |
+
} // if($odb_class->odb_rvg_options['clear_spam'] == 'Y')
|
322 |
+
|
323 |
+
|
324 |
+
/****************************************************************************************
|
325 |
+
* DELETE EXPIRED TRANSIENTS
|
326 |
+
****************************************************************************************/
|
327 |
+
if ($odb_class->odb_rvg_options['clear_transients'] !== 'N') {
|
328 |
+
// DELETE TRAMSIENTS ENABLED
|
329 |
+
$total_deleted = 0;
|
330 |
+
|
331 |
+
if (!$scheduler) {
|
332 |
+
// NOT VIA SCHEDULER
|
333 |
+
if ($odb_class->odb_rvg_options['clear_transients'] == 'Y') {
|
334 |
+
// EXPRIRED TRANSIENTS ONLY
|
335 |
+
if ($analyzing){
|
336 |
+
$msg1 = __('EXPIRED TRANSIENTS', $odb_class->odb_txt_domain);
|
337 |
+
$msg2 = __('total number of expired transients', $odb_class->odb_txt_domain);
|
338 |
+
} else {
|
339 |
+
$msg1 = __('EXPIRED TRANSIENTS DELETED', $odb_class->odb_txt_domain);
|
340 |
+
$msg2 = __('total number of expired transients deleted', $odb_class->odb_txt_domain);
|
341 |
+
} // if ($analyzing)
|
342 |
+
} else {
|
343 |
+
// ALL TRANSIENTS
|
344 |
+
if ($analyzing){
|
345 |
+
$msg1 = __('TRANSIENTS', $odb_class->odb_txt_domain);
|
346 |
+
$msg2 = __('total number of transients', $odb_class->odb_txt_domain);
|
347 |
+
} else {
|
348 |
+
$msg1 = __('TRANSIENTS DELETED', $odb_class->odb_txt_domain);
|
349 |
+
$msg2 = __('total number of transients', $odb_class->odb_txt_domain);
|
350 |
+
} // if ($analyzing
|
351 |
+
} // if ($odb_class->odb_rvg_options['clear_transients'] == 'Y')
|
352 |
+
$res = $this->odb_delete_transients($scheduler, $analyzing);
|
353 |
+
$total_deleted = count($res);
|
354 |
+
if ($total_deleted > 0) {
|
355 |
+
?>
|
356 |
+
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
357 |
+
<tr>
|
358 |
+
<td colspan="4"><div class="odb-found">
|
359 |
+
<?php echo $msg1 ?>
|
360 |
+
</div></td>
|
361 |
+
</tr>
|
362 |
+
<tr>
|
363 |
+
<th align="right" class="odb-border-bottom">#</th>
|
364 |
+
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
365 |
+
<th align="left" class="odb-border-bottom"><?php _e('option name', $odb_class->odb_txt_domain);?></th>
|
366 |
+
</tr>
|
367 |
+
<?php
|
368 |
+
// LOOP THROUGH TRANSIENS ITEMS AND DELETE THEM
|
369 |
+
$nr = 1;
|
370 |
+
for ($j = 0; $j < $total_deleted; $j++) {
|
371 |
+
?>
|
372 |
+
<tr>
|
373 |
+
<td align="right" valign="top"><?php echo $nr; ?></td>
|
374 |
+
<td align="left" valign="top"><?php echo $res[$j]['site']?></td>
|
375 |
+
<td valign="top"><?php echo $res[$j]['option_name']; ?></td>
|
376 |
+
</tr>
|
377 |
+
<?php
|
378 |
+
$nr++;
|
379 |
+
} // for ($j = 0; $j < count($res);$j++) {
|
380 |
+
?>
|
381 |
+
<tr>
|
382 |
+
<td colspan="3" align="right" class="odb-border-top odb-bold"<?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
383 |
+
</tr>
|
384 |
+
</table>
|
385 |
+
<?php
|
386 |
+
} else {
|
387 |
+
?>
|
388 |
+
<div class="odb-not-found">
|
389 |
+
<?php
|
390 |
+
if ($odb_class->odb_rvg_options['clear_transients'] == 'Y') {
|
391 |
+
$msg = _e('No EXPIRED TRANSIENTS found to delete', $odb_class->odb_txt_domain);
|
392 |
+
} else {
|
393 |
+
$msg = _e('No TRANSIENTS found to delete', $odb_class->odb_txt_domain);
|
394 |
+
}
|
395 |
+
?>
|
396 |
+
</div>
|
397 |
+
<?php
|
398 |
+
}
|
399 |
+
} else {
|
400 |
+
return;
|
401 |
+
} // if (!$scheduler)
|
402 |
+
} // if($odb_class->odb_rvg_options['clear_transients'] != 'N')
|
403 |
+
|
404 |
+
/****************************************************************************************
|
405 |
+
* DELETE PINGBACKS AND TRACKBACKS
|
406 |
+
****************************************************************************************/
|
407 |
+
if($odb_class->odb_rvg_options['clear_pingbacks'] == 'Y') {
|
408 |
+
// GET PINGBACKS AND TRACKBACKS
|
409 |
+
$results = $this->odb_get_pingbacks($analyzing);
|
410 |
+
|
411 |
+
$total_deleted = 0;
|
412 |
+
if(count($results)>0) {
|
413 |
+
// WE HAVE TRASH TO DELETE!
|
414 |
+
if(!$scheduler) {
|
415 |
+
if ($analyzing) {
|
416 |
+
$msg1 = __('PINGBACKS AND TRACKBACKS', $odb_class->odb_txt_domain);
|
417 |
+
$msg2 = __('total number of pingbacks and trackbacks', $odb_class->odb_txt_domain);
|
418 |
+
} else {
|
419 |
+
$msg1 = __('DELETED PINGBACKS AND TRACKBACKS', $odb_class->odb_txt_domain);
|
420 |
+
$msg2 = __('total number of pingbacks and trackbacks deleted', $odb_class->odb_txt_domain);
|
421 |
+
} // if ($analyzing)
|
422 |
+
?>
|
423 |
+
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
424 |
+
<tr>
|
425 |
+
<td colspan="4"><div class="odb-found">
|
426 |
+
<?php echo $msg1 ?>
|
427 |
+
</div></td>
|
428 |
+
</tr>
|
429 |
+
<tr>
|
430 |
+
<th align="right" class="odb-border-bottom">#</th>
|
431 |
+
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
432 |
+
<th align="left" class="odb-border-bottom"><?php _e('type', $odb_class->odb_txt_domain);?></th>
|
433 |
+
<th align="left" class="odb-border-bottom"><?php _e('comment_author', $odb_class->odb_txt_domain);?></th>
|
434 |
+
<th align="left" nowrap="nowrap" class="odb-border-bottom"><?php _e('date', $odb_class->odb_txt_domain);?></th>
|
435 |
+
</tr>
|
436 |
+
<?php
|
437 |
+
} // if(!$scheduler)
|
438 |
+
|
439 |
+
// LOOP THROUGH THE TRASHED ITEMS AND DELETE THEM
|
440 |
+
$total_deleted = $this->odb_delete_pingbacks($results, $scheduler, $analyzing);
|
441 |
+
|
442 |
+
if(!$scheduler) {
|
443 |
+
?>
|
444 |
+
<tr>
|
445 |
+
<td colspan="5" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
446 |
+
</tr>
|
447 |
+
</table>
|
448 |
+
<?php
|
449 |
+
} // if(!$scheduler)
|
450 |
+
} else {
|
451 |
+
if(!$scheduler) {
|
452 |
+
?>
|
453 |
+
<div class="odb-not-found">
|
454 |
+
<?php _e('No PINGBACKS nor TRACKBACKS found to delete', $odb_class->odb_txt_domain);?>
|
455 |
+
</div>
|
456 |
+
<?php
|
457 |
+
} // if(!$scheduler)
|
458 |
+
} // if(count($results)>0)
|
459 |
+
|
460 |
+
// NUMBER OF DELETED PINGBACKS FOR LOG FILE
|
461 |
+
$odb_class->log_arr["pingbacks"] = $total_deleted;
|
462 |
+
} // if($odb_class->odb_rvg_options['clear_pingbacks'] == 'Y')
|
463 |
+
|
464 |
+
|
465 |
+
/****************************************************************************************
|
466 |
+
* DELETE OEMBED CACHE
|
467 |
+
****************************************************************************************/
|
468 |
+
if($odb_class->odb_rvg_options['clear_oembed'] == 'Y') {
|
469 |
+
|
470 |
+
// GET OEMBED CACHE
|
471 |
+
$results = $this->odb_get_oembed($analyzing);
|
472 |
+
|
473 |
+
$total_deleted = 0;
|
474 |
+
if(count($results)>0) {
|
475 |
+
// WE HAVE TRASH TO DELETE!
|
476 |
+
if(!$scheduler) {
|
477 |
+
if ($analyzing) {
|
478 |
+
$msg1 = __('OEMBED CACHE', $odb_class->odb_txt_domain);
|
479 |
+
$msg2 = __('total number of oEmbeds', $odb_class->odb_txt_domain);
|
480 |
+
} else {
|
481 |
+
$msg1 = __('DELETED OEMBEDS', $odb_class->odb_txt_domain);
|
482 |
+
$msg2 = __('total number of oEmbeds deleted', $odb_class->odb_txt_domain);
|
483 |
+
} // if ($analyzing)
|
484 |
+
?>
|
485 |
+
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
486 |
+
<tr>
|
487 |
+
<td colspan="4"><div class="odb-found">
|
488 |
+
<?php echo $msg1 ?>
|
489 |
+
</div></td>
|
490 |
+
</tr>
|
491 |
+
<tr>
|
492 |
+
<th align="right" class="odb-border-bottom">#</th>
|
493 |
+
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
494 |
+
<th align="left" class="odb-border-bottom"><?php _e('meta key', $odb_class->odb_txt_domain);?></th>
|
495 |
+
<th align="left" class="odb-border-bottom"><?php _e('meta value', $odb_class->odb_txt_domain);?></th>
|
496 |
+
</tr>
|
497 |
+
<?php
|
498 |
+
} // if(!$scheduler)
|
499 |
+
|
500 |
+
// LOOP THROUGH THE TRASHED ITEMS AND DELETE THEM
|
501 |
+
$total_deleted = $this->odb_delete_oembed($results, $scheduler, $analyzing);
|
502 |
+
|
503 |
+
if(!$scheduler) {
|
504 |
+
?>
|
505 |
+
<tr>
|
506 |
+
<td colspan="4" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?>: <?php echo $total_deleted?></td>
|
507 |
+
</tr>
|
508 |
+
</table>
|
509 |
+
<?php
|
510 |
+
} // if(!$scheduler)
|
511 |
+
} else {
|
512 |
+
if(!$scheduler) {
|
513 |
+
?>
|
514 |
+
<div class="odb-not-found">
|
515 |
+
<?php _e('No OEMED CHACHE found to delete', $odb_class->odb_txt_domain);?>
|
516 |
+
</div>
|
517 |
+
<?php
|
518 |
+
} // if(!$scheduler)
|
519 |
+
} // if(count($results)>0)
|
520 |
+
|
521 |
+
// NUMBER OF DELETED PINGBACKS FOR LOG FILE
|
522 |
+
$odb_class->log_arr["oembeds"] = $total_deleted;
|
523 |
+
} // if($odb_class->odb_rvg_options['clear_oembed'] == 'Y')
|
524 |
+
|
525 |
+
|
526 |
+
/****************************************************************************************
|
527 |
+
* DELETE ORPHANS
|
528 |
+
****************************************************************************************/
|
529 |
+
if($odb_class->odb_rvg_options['clear_orphans'] == 'Y') {
|
530 |
+
$results = $this->odb_get_orphans($results, $scheduler,$analyzing);
|
531 |
+
|
532 |
+
$total_deleted = count($results);
|
533 |
+
|
534 |
+
//$total_deleted = $this->odb_delete_orphans($analyzing);
|
535 |
+
|
536 |
+
if($total_deleted > 0) {
|
537 |
+
if (!$scheduler) {
|
538 |
+
if ($analyzing) {
|
539 |
+
$msg1 = __('POSTMETA ORPHANS', $odb_class->odb_txt_domain);
|
540 |
+
$msg2 = __('total number of orphans', $odb_class->odb_txt_domain);
|
541 |
+
} else {
|
542 |
+
$msg1 = __('DELETED POSTMETA ORPHANS', $odb_class->odb_txt_domain);
|
543 |
+
$msg2 = __('total number of orphans', $odb_class->odb_txt_domain);
|
544 |
+
}
|
545 |
+
?>
|
546 |
+
<!-- <div class="odb-found-number">
|
547 |
+
<?php echo $msg1 ?>: <span class="odb-blue"><?php echo $total_deleted;?></span>
|
548 |
+
</div>-->
|
549 |
+
<table border="0" cellspacing="8" cellpadding="2" class="odb-result-table">
|
550 |
+
<tr>
|
551 |
+
<td colspan="8"><div class="odb-found">
|
552 |
+
<?php echo $msg1 ?>
|
553 |
+
</div></td>
|
554 |
+
</tr>
|
555 |
+
<tr>
|
556 |
+
<th align="right" class="odb-border-bottom">#</th>
|
557 |
+
<th align="left" class="odb-border-bottom"><?php _e('prefix', $odb_class->odb_txt_domain);?></th>
|
558 |
+
<th align="left" class="odb-border-bottom"><?php _e('type', $odb_class->odb_txt_domain);?></th>
|
559 |
+
<th align="left" class="odb-border-bottom"><?php _e('id', $odb_class->odb_txt_domain);?></th>
|
560 |
+
<th align="left" class="odb-border-bottom"><?php _e('title', $odb_class->odb_txt_domain);?></th>
|
561 |
+
<th align="left" nowrap="nowrap" class="odb-border-bottom"><?php _e('modified', $odb_class->odb_txt_domain);?></th>
|
562 |
+
<th align="left" class="odb-border-bottom"><?php _e('meta key', $odb_class->odb_txt_domain);?></th>
|
563 |
+
<th align="left" class="odb-border-bottom"><?php _e('meta value', $odb_class->odb_txt_domain);?></th>
|
564 |
+
</tr>
|
565 |
+
<?php
|
566 |
+
} // if(!$scheduler)
|
567 |
+
|
568 |
+
// LOOP THROUGH THE TRASHED ITEMS AND DELETE THEM
|
569 |
+
$total_deleted = $this->odb_delete_orphans($results, $scheduler, $analyzing);
|
570 |
+
|
571 |
+
if(!$scheduler) {
|
572 |
+
?>
|
573 |
+
<tr>
|
574 |
+
<td colspan="8" align="right" class="odb-border-top odb-bold"><?php echo $msg2 ?> <?php echo $total_deleted?></td>
|
575 |
+
</tr>
|
576 |
+
</table>
|
577 |
+
|
578 |
+
<?php
|
579 |
+
} // if (!$scheduler)
|
580 |
+
} else {
|
581 |
+
if (!$scheduler) {
|
582 |
+
?>
|
583 |
+
<div class="odb-not-found">
|
584 |
+
<?php _e('No POSTMETA ORPHANS found to delete', $odb_class->odb_txt_domain);?>
|
585 |
+
</div>
|
586 |
+
<?php
|
587 |
+
} // if (!$scheduler)
|
588 |
+
} // if($total_deleted > 0)
|
589 |
+
// FOR LOG FILE
|
590 |
+
$odb_class->log_arr["orphans"] = $total_deleted;
|
591 |
+
|
592 |
+
if (!$scheduler) {
|
593 |
+
?>
|
594 |
+
</div><!-- /odb-cleaner -->
|
595 |
+
<?php
|
596 |
+
} // if (!$scheduler)
|
597 |
+
} // if($odb_class->odb_rvg_options['clear_oembed'] == 'Y')
|
598 |
+
} // odb_run_cleaner()
|
599 |
+
|
600 |
+
|
601 |
+
/********************************************************************************************
|
602 |
+
* RUN OPTIMIZER
|
603 |
+
********************************************************************************************/
|
604 |
+
function odb_run_optimizer($scheduler) {
|
605 |
+
global $odb_class;
|
606 |
+
|
607 |
+
if(!$scheduler) {
|
608 |
+
?>
|
609 |
+
<div class="odb-optimizing-table" class="odb-padding-left">
|
610 |
+
<div class="odb-title-bar">
|
611 |
+
<h2><?php _e('Optimizing Database Tables', $odb_class->odb_txt_domain);?></h2>
|
612 |
+
</div>
|
613 |
+
<br>
|
614 |
+
<br>
|
615 |
+
<table border="0" cellspacing="8" cellpadding="2">
|
616 |
+
<tr>
|
617 |
+
<th class="odb-border-bottom" align="right">#</th>
|
618 |
+
<th class="odb-border-bottom" align="left"><?php _e('table name', $odb_class->odb_txt_domain);?></th>
|
619 |
+
<th class="odb-border-bottom" align="left"><?php _e('optimization result', $odb_class->odb_txt_domain);?></th>
|
620 |
+
<th class="odb-border-bottom" align="left"><?php _e('engine', $odb_class->odb_txt_domain);?></th>
|
621 |
+
<th class="odb-border-bottom" align="right"><?php _e('table rows', $odb_class->odb_txt_domain);?></th>
|
622 |
+
<th class="odb-border-bottom" align="right"><?php _e('table size', $odb_class->odb_txt_domain);?></th>
|
623 |
+
</tr>
|
624 |
+
<?php
|
625 |
+
} // if(!$scheduler)
|
626 |
+
|
627 |
+
# OPTIMIZE THE DATABASE TABLES
|
628 |
+
$this->nr_of_optimized_tables = $this->odb_optimize_tables($scheduler);
|
629 |
+
|
630 |
+
if(!$scheduler) {
|
631 |
+
?>
|
632 |
+
</table>
|
633 |
+
</div><!-- /odb-optimizing-table -->
|
634 |
+
<?php
|
635 |
+
} // if(!$scheduler)
|
636 |
+
} // odb_run_optimizer()
|
637 |
+
|
638 |
+
|
639 |
+
/********************************************************************************************
|
640 |
+
* CALCULATE AND DISPLAY SAVINGS
|
641 |
+
********************************************************************************************/
|
642 |
+
function odb_savings($scheduler) {
|
643 |
+
global $odb_class;
|
644 |
+
global $odb_logger_obj;
|
645 |
+
|
646 |
+
// NUMBER OF TABLES
|
647 |
+
$odb_class->log_arr["tables"] = $this->nr_of_optimized_tables;
|
648 |
+
// DATABASE SIZE BEFORE OPTIMIZATION
|
649 |
+
$odb_class->log_arr["before"] = $odb_class->odb_utilities_obj->odb_format_size($this->start_size,3);
|
650 |
+
// DATABASE SIZE AFTER OPTIMIZATION
|
651 |
+
$end_size = $odb_class->odb_utilities_obj->odb_get_db_size();
|
652 |
+
$odb_class->log_arr["after"] = $odb_class->odb_utilities_obj->odb_format_size($end_size,3);
|
653 |
+
// TOTAL SAVING
|
654 |
+
$odb_class->log_arr["savings"] = $odb_class->odb_utilities_obj->odb_format_size(($this->start_size - $end_size),3);
|
655 |
+
|
656 |
+
// WRITE RESULTS TO LOG FILE - v4.6
|
657 |
+
$odb_class->odb_logger_obj->odb_add_log($odb_class->log_arr);
|
658 |
+
|
659 |
+
$total_savings = $odb_class->odb_rvg_options['total_savings'];
|
660 |
+
$total_savings += ($this->start_size - $end_size);
|
661 |
+
$odb_class->odb_rvg_options['total_savings'] = $total_savings;
|
662 |
+
|
663 |
+
$odb_class->odb_multisite_obj->odb_ms_update_option('odb_rvg_options', $odb_class->odb_rvg_options);
|
664 |
+
|
665 |
+
if(!$scheduler) {
|
666 |
+
?>
|
667 |
+
<div id="odb-savings" class="odb-padding-left">
|
668 |
+
<div class="odb-title-bar">
|
669 |
+
<h2><?php _e('Savings', $odb_class->odb_txt_domain);?></h2>
|
670 |
+
</div>
|
671 |
+
<br>
|
672 |
+
<br>
|
673 |
+
<table border="0" cellspacing="8" cellpadding="2">
|
674 |
+
<tr>
|
675 |
+
<th> </th>
|
676 |
+
<th class="odb-border-bottom"><?php _e('size of the database', $odb_class->odb_txt_domain);?></th>
|
677 |
+
</tr>
|
678 |
+
<tr>
|
679 |
+
<td align="right"><?php _e('BEFORE optimization', $odb_class->odb_txt_domain);?></td>
|
680 |
+
<td align="right" class="odb-bold"><?php echo $odb_class->odb_utilities_obj->odb_format_size($this->start_size,3); ?></td>
|
681 |
+
</tr>
|
682 |
+
<tr>
|
683 |
+
<td align="right"><?php _e('AFTER optimization', $odb_class->odb_txt_domain);?></td>
|
684 |
+
<td align="right" class="odb-bold"><?php echo $odb_class->odb_utilities_obj->odb_format_size($end_size,3); ?></td>
|
685 |
+
</tr>
|
686 |
+
<tr>
|
687 |
+
<td align="right" class="odb-bold"><?php _e('SAVINGS THIS TIME', $odb_class->odb_txt_domain);?></td>
|
688 |
+
<td align="right" class="odb-border-top odb-bold"><?php echo $odb_class->odb_utilities_obj->odb_format_size(($this->start_size - $end_size),3); ?></td>
|
689 |
+
</tr>
|
690 |
+
<tr>
|
691 |
+
<td align="right" class="odb-bold"><?php _e('TOTAL SAVINGS SINCE THE FIRST RUN', $odb_class->odb_txt_domain);?></td>
|
692 |
+
<td align="right" class="odb-border-top odb-bold"><?php echo $odb_class->odb_utilities_obj->odb_format_size($total_savings,3); ?></td>
|
693 |
+
</tr>
|
694 |
+
</table>
|
695 |
+
</div><!-- /odb-savings -->
|
696 |
+
<?php
|
697 |
+
} // if(!$scheduler)
|
698 |
+
} // odb_savings()
|
699 |
+
|
700 |
+
|
701 |
+
/********************************************************************************************
|
702 |
+
* SHOW LOADING TIME
|
703 |
+
********************************************************************************************/
|
704 |
+
function odb_done($analyze = false) {
|
705 |
+
global $odb_class;
|
706 |
+
|
707 |
+
$time = microtime();
|
708 |
+
$time = explode(' ', $time);
|
709 |
+
$time = $time[1] + $time[0];
|
710 |
+
$finish = $time;
|
711 |
+
|
712 |
+
$total_time = round(($finish - $odb_class->odb_start_time), 4);
|
713 |
+
?>
|
714 |
+
<div id="odb-done" class="odb-padding-left">
|
715 |
+
<div class="odb-title-bar">
|
716 |
+
<h2>
|
717 |
+
<?php _e('DONE!', $odb_class->odb_txt_domain);?>
|
718 |
+
</h2>
|
719 |
+
</div>
|
720 |
+
<br>
|
721 |
+
<br>
|
722 |
+
<?php
|
723 |
+
if (!$analyze) {
|
724 |
+
?>
|
725 |
+
<span class="odb-padding-left"><?php _e('Optimization took', $odb_class->odb_txt_domain)?> <strong><?php echo $total_time;?></strong> <?php _e('seconds', $odb_class->odb_txt_domain)?>.</span>
|
726 |
+
<?php
|
727 |
+
} // if ($analyze)
|
728 |
+
?>
|
729 |
+
<?php
|
730 |
+
// v4.5.1
|
731 |
+
$odb_class->odb_last_run_seconds = $total_time;
|
732 |
+
|
733 |
+
if($odb_class->odb_logger_obj->odb_log_count() > 0) {
|
734 |
+
?>
|
735 |
+
<script>
|
736 |
+
function odb_confirm_delete() {
|
737 |
+
<?php
|
738 |
+
// v4.6.2
|
739 |
+
$msg = str_replace("'", "\'", __('Clear the log?', $odb_class->odb_txt_domain));
|
740 |
+
?>
|
741 |
+
if(confirm('<?php echo $msg?>')) {
|
742 |
+
self.location = 'tools.php?page=rvg-optimize-database&action=clear_log'
|
743 |
+
return;
|
744 |
+
}
|
745 |
+
} // odb_confirm_delete()
|
746 |
+
</script>
|
747 |
+
<br><br>
|
748 |
+
|
749 |
+
<input class="button odb-normal" type="button" name="view_log" value="<?php _e('View Log', $odb_class->odb_txt_domain);?>" onclick="self.location='tools.php?page=rvg-optimize-database&action=view_log'" />
|
750 |
+
|
751 |
+
<input class="button odb-normal" type="button" name="clear_log" value="<?php _e('Clear Log', $odb_class->odb_txt_domain);?>" onclick="return odb_confirm_delete();" />
|
752 |
+
<?php
|
753 |
+
} // if($odb_class->odb_logger_obj->odb_log_count() > 0)
|
754 |
+
?>
|
755 |
+
</div><!-- /odb-done -->
|
756 |
+
<?php
|
757 |
+
} // odb_done()
|
758 |
+
|
759 |
+
|
760 |
+
/********************************************************************************************
|
761 |
+
* GET REVISIONS (OLDER THAN x DAYS)
|
762 |
+
********************************************************************************************/
|
763 |
+
function odb_get_revisions_older_than() {
|
764 |
+
global $odb_class, $wpdb;
|
765 |
+
|
766 |
+
$res_arr = array();
|
767 |
+
|
768 |
+
// CUSTOM POST TYPES (from v4.4)
|
769 |
+
$rel_posttypes = $odb_class->odb_rvg_options['post_types'];
|
770 |
+
$in = '';
|
771 |
+
foreach ($rel_posttypes as $posttype => $value) {
|
772 |
+
if ($value == 'Y') {
|
773 |
+
if ($in != '') $in .= ',';
|
774 |
+
$in .= "'" . $posttype . "'";
|
775 |
+
} // if ($value == 'Y')
|
776 |
+
} // foreach($rel_posttypes as $posttypes)
|
777 |
+
|
778 |
+
$where = '';
|
779 |
+
if($in != '') {
|
780 |
+
$where = " AND p2.`post_type` IN ($in)";
|
781 |
+
} else {
|
782 |
+
// NO POST TYPES TO DELETE REVISIONS FOR... SKIP!
|
783 |
+
return $res_arr;
|
784 |
+
} // if($in != '')
|
785 |
+
|
786 |
+
$older_than = $odb_class->odb_rvg_options['older_than'];
|
787 |
+
|
788 |
+
$index = 0;
|
789 |
+
|
790 |
+
// LOOP THROUGH THE SITES (IF MULTI SITE)
|
791 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
792 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];
|
793 |
+
|
794 |
+
$sql = sprintf("
|
795 |
+
SELECT '%s' AS site,
|
796 |
+
p1.`ID`,
|
797 |
+
p1.`post_parent`,
|
798 |
+
p1.`post_title`,
|
799 |
+
p1.`post_modified`
|
800 |
+
FROM %sposts p1, %sposts p2
|
801 |
+
WHERE p1.`post_type` = 'revision'
|
802 |
+
AND p1.`post_parent` = p2.ID
|
803 |
+
%s
|
804 |
+
AND p1.`post_modified` < date_sub(now(), INTERVAL %d DAY)
|
805 |
+
ORDER BY UCASE(p1.`post_title`)
|
806 |
+
",
|
807 |
+
$prefix,
|
808 |
+
$prefix,
|
809 |
+
$prefix,
|
810 |
+
$where,
|
811 |
+
$older_than);
|
812 |
+
|
813 |
+
//echo 'OLDER: '.$sql.'<br>';
|
814 |
+
|
815 |
+
$res = $wpdb->get_results($sql, ARRAY_A);
|
816 |
+
|
817 |
+
for($j=0; $j<count($res); $j++) {
|
818 |
+
if(isset($res[$j]) && !$this->odb_post_is_excluded($res[$j]['post_parent'])) {
|
819 |
+
$res_arr[$index] = $res[$j];
|
820 |
+
$index++;
|
821 |
+
} // if(isset($res[$j]) && !$this->odb_post_is_excluded($res[$j]['post_parent']))
|
822 |
+
} // for($j=0; $j<count($res); $j++)
|
823 |
+
|
824 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
825 |
+
|
826 |
+
return $res_arr;
|
827 |
+
} // odb_get_revisions_older_than()
|
828 |
+
|
829 |
+
|
830 |
+
/********************************************************************************************
|
831 |
+
* GET REVISIONS (KEEP MAX NUMBER OF REVISIONS)
|
832 |
+
********************************************************************************************/
|
833 |
+
function odb_get_revisions_keep_revisions() {
|
834 |
+
global $odb_class, $wpdb;
|
835 |
+
|
836 |
+
$res_arr = array();
|
837 |
+
|
838 |
+
// CUSTOM POST TYPES (from v4.4)
|
839 |
+
$rel_posttypes = $odb_class->odb_rvg_options['post_types'];
|
840 |
+
$in = '';
|
841 |
+
foreach ($rel_posttypes as $posttype => $value) {
|
842 |
+
if ($value == 'Y') {
|
843 |
+
if ($in != '') $in .= ',';
|
844 |
+
$in .= "'" . $posttype . "'";
|
845 |
+
} // if ($value == 'Y')
|
846 |
+
} // foreach($rel_posttypes as $posttypes)
|
847 |
+
|
848 |
+
$where1 = '';
|
849 |
+
if($in != '') {
|
850 |
+
$where1 = " AND p2.`post_type` IN ($in)";
|
851 |
+
} else {
|
852 |
+
// NO POST TYPES TO DELETE REVISIONS FOR... SKIP!
|
853 |
+
return $res_arr;
|
854 |
+
} // if($in != '')
|
855 |
+
|
856 |
+
// MAX NUMBER OF REVISIONS TO KEEP
|
857 |
+
$max_revisions = $odb_class->odb_rvg_options['nr_of_revisions'];
|
858 |
+
|
859 |
+
$index = 0;
|
860 |
+
|
861 |
+
// SKIP REVISIONS THAT WILL BE DELETED BY THE 'OLDER THAN' OPTION
|
862 |
+
$where2 = '';
|
863 |
+
if($odb_class->odb_rvg_options['delete_older'] == 'Y') {
|
864 |
+
$older_than = $odb_class->odb_rvg_options['older_than'];
|
865 |
+
$where2 = 'AND p1.`post_modified` >= date_sub(now(), INTERVAL '.$older_than.' DAY)';
|
866 |
+
}
|
867 |
+
|
868 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
869 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];
|
870 |
+
|
871 |
+
$sql = sprintf ("
|
872 |
+
SELECT '%s' AS site,
|
873 |
+
p1.`ID`, p1.`post_parent`, p1.`post_title`, COUNT(*) cnt
|
874 |
+
FROM %sposts p1, %sposts p2
|
875 |
+
WHERE p1.`post_type` = 'revision'
|
876 |
+
AND p1.`post_parent` = p2.ID
|
877 |
+
%s
|
878 |
+
%s
|
879 |
+
GROUP BY p1.`post_parent`
|
880 |
+
HAVING COUNT(*) > %d
|
881 |
+
ORDER BY UCASE(p1.`post_title`)
|
882 |
+
",
|
883 |
+
$prefix,
|
884 |
+
$prefix,
|
885 |
+
$prefix,
|
886 |
+
$where1,
|
887 |
+
$where2,
|
888 |
+
$max_revisions);
|
889 |
+
|
890 |
+
//echo 'KEEP: '.$sql.'<br>';
|
891 |
+
|
892 |
+
$res = $wpdb->get_results($sql, ARRAY_A);
|
893 |
+
for($j=0; $j<count($res); $j++) {
|
894 |
+
if(isset($res[$j]) && !$this->odb_post_is_excluded($res[$j]['post_parent'])) {
|
895 |
+
$res_arr[$index] = $res[$j];
|
896 |
+
$index++;
|
897 |
+
}
|
898 |
+
} // for($j=0; $j<count($res); $j++)
|
899 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
900 |
+
|
901 |
+
return $res_arr;
|
902 |
+
} // odb_get_revisions_keep_revisions()
|
903 |
+
|
904 |
+
|
905 |
+
/********************************************************************************************
|
906 |
+
* DELETE THE REVISIONS
|
907 |
+
********************************************************************************************/
|
908 |
+
function odb_delete_revisions($scheduler, $analyzing = false) {
|
909 |
+
global $odb_class, $wpdb;
|
910 |
+
|
911 |
+
$total_deleted = 0;
|
912 |
+
$nr = 1;
|
913 |
+
|
914 |
+
if($odb_class->odb_rvg_options['delete_older'] == 'Y') {
|
915 |
+
// DELETE REVISIONS OLDER THAN x DAYS
|
916 |
+
$results = $this->odb_get_revisions_older_than();
|
917 |
+
$older_than = $odb_class->odb_rvg_options['older_than'];
|
918 |
+
$total_deleted += count($results);
|
919 |
+
|
920 |
+
for($i=0; $i<count($results); $i++) {
|
921 |
+
if (!$scheduler) {
|
922 |
+
?>
|
923 |
+
<tr>
|
924 |
+
<td align="right" valign="top"><?php echo $nr?>.</td>
|
925 |
+
<td align="left" valign="top"><?php echo $results[$i]['site']?></td>
|
926 |
+
<td valign="top" class="odb-bold"><?php echo $results[$i]['post_title']?></td>
|
927 |
+
<td valign="top" class="odb-bold"><?php echo $results[$i]['post_modified']?></td><?php
|
928 |
+
} // if (!$scheduler)
|
929 |
+
|
930 |
+
if (!$analyzing) {
|
931 |
+
$sql_delete = sprintf ("
|
932 |
+
DELETE FROM %sposts
|
933 |
+
WHERE `ID` = %d
|
934 |
+
", $results[$i]['site'], $results[$i]['ID']);
|
935 |
+
|
936 |
+
$wpdb->get_results($sql_delete);
|
937 |
+
} // if (!$analyzing)
|
938 |
+
|
939 |
+
$nr++;
|
940 |
+
if(!$scheduler) {
|
941 |
+
?>
|
942 |
+
<td align="right" valign="top" class="odb-bold">1</td>
|
943 |
+
</tr>
|
944 |
+
<?php
|
945 |
+
} // if(!$scheduler)
|
946 |
+
} // for($i=0; $i<count($results); $i++)
|
947 |
+
} // if($odb_class->odb_rvg_options['delete_older'] == 'Y')
|
948 |
+
|
949 |
+
if($odb_class->odb_rvg_options['rvg_revisions'] == 'Y') {
|
950 |
+
// KEEP MAX NUMBER OF REVISIONS
|
951 |
+
$results = $this->odb_get_revisions_keep_revisions();
|
952 |
+
$max_revisions = $odb_class->odb_rvg_options['nr_of_revisions'];
|
953 |
+
|
954 |
+
for($i=0; $i<count($results); $i++) {
|
955 |
+
$nr_to_delete = $results[$i]['cnt'] - $max_revisions;
|
956 |
+
$total_deleted += $nr_to_delete;
|
957 |
+
|
958 |
+
if (!$scheduler) {
|
959 |
+
?>
|
960 |
+
<tr>
|
961 |
+
<td align="right" valign="top"><?php echo $nr?>.</td>
|
962 |
+
<td align="left" valign="top"><?php echo $results[$i]['site']?></td>
|
963 |
+
<td valign="top" class="odb-bold"><?php echo $results[$i]['post_title']?></td>
|
964 |
+
<td valign="top"><?php
|
965 |
+
} // if (!$scheduler)
|
966 |
+
|
967 |
+
$sql_get_posts = sprintf( "
|
968 |
+
SELECT `ID`, `post_modified`
|
969 |
+
FROM %sposts
|
970 |
+
WHERE `post_parent` = %d
|
971 |
+
AND `post_type` = 'revision'
|
972 |
+
ORDER BY `post_modified` ASC
|
973 |
+
", $results[$i]['site'], $results[$i]['post_parent']);
|
974 |
+
|
975 |
+
$results_get_posts = $wpdb->get_results($sql_get_posts);
|
976 |
+
|
977 |
+
for($j=0; $j<$nr_to_delete; $j++) {
|
978 |
+
if(!$scheduler) echo $results_get_posts[$j]->post_modified.'<br>';
|
979 |
+
if (!$analyzing) {
|
980 |
+
$sql_delete = sprintf ("
|
981 |
+
DELETE FROM %sposts
|
982 |
+
WHERE `ID` = %d
|
983 |
+
", $results[$i]['site'], $results_get_posts[$j]->ID);
|
984 |
+
|
985 |
+
$wpdb->get_results($sql_delete);
|
986 |
+
} // if (!$analyzing)
|
987 |
+
} // for($j=0; $j<$nr_to_delete; $j++)
|
988 |
+
|
989 |
+
$nr++;
|
990 |
+
if(!$scheduler) {
|
991 |
+
?></td>
|
992 |
+
<td align="right" valign="top" class="odb-bold"><?php echo $nr_to_delete?> <?php _e('of', $odb_class->odb_txt_domain)?> <?php echo $results[$i]['cnt'];?></td>
|
993 |
+
</tr>
|
994 |
+
<?php
|
995 |
+
} // if(!$scheduler)
|
996 |
+
} // for($i=0; $i<count($results); $i++)
|
997 |
+
} // if($odb_class->odb_rvg_options['rvg_revisions'] == 'Y')
|
998 |
+
|
999 |
+
return $total_deleted;
|
1000 |
+
} // function odb_delete_revisions()
|
1001 |
+
|
1002 |
+
|
1003 |
+
/********************************************************************************************
|
1004 |
+
* CHECK IF POST IS EXCLUDED BY A CUSTOM FIELD ('keep_revisions')
|
1005 |
+
********************************************************************************************/
|
1006 |
+
function odb_post_is_excluded($parent_id) {
|
1007 |
+
$keep_revisions = get_post_meta($parent_id, 'keep_revisions', true);
|
1008 |
+
return ($keep_revisions === 'Y');
|
1009 |
+
} // odb_post_is_exclude()
|
1010 |
+
|
1011 |
+
|
1012 |
+
/********************************************************************************************
|
1013 |
+
* GET TRASHED POSTS / PAGES AND COMMENTS
|
1014 |
+
********************************************************************************************/
|
1015 |
+
function odb_get_trash($analyzing = false) {
|
1016 |
+
global $wpdb, $odb_class;
|
1017 |
+
|
1018 |
+
$res_arr = array();
|
1019 |
+
|
1020 |
+
$index = 0;
|
1021 |
+
// LOOP TROUGH SITES
|
1022 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
1023 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];
|
1024 |
+
|
1025 |
+
$sql = sprintf ("
|
1026 |
+
SELECT '%s' AS site,
|
1027 |
+
`ID` AS id,
|
1028 |
+
'post' AS post_type,
|
1029 |
+
`post_title` AS title,
|
1030 |
+
`post_modified` AS modified
|
1031 |
+
FROM %sposts
|
1032 |
+
WHERE `post_status` = 'trash'
|
1033 |
+
UNION ALL
|
1034 |
+
SELECT '%s' AS site,
|
1035 |
+
`comment_ID` AS id,
|
1036 |
+
'comment' AS post_type,
|
1037 |
+
`comment_author_IP` AS title,
|
1038 |
+
`comment_date` AS modified
|
1039 |
+
FROM %scomments
|
1040 |
+
WHERE `comment_approved` = 'trash'
|
1041 |
+
ORDER BY post_type, UCASE(title)
|
1042 |
+
", $prefix, $prefix, $prefix, $prefix);
|
1043 |
+
|
1044 |
+
$res = $wpdb->get_results($sql, ARRAY_A);
|
1045 |
+
|
1046 |
+
if($res != null) {
|
1047 |
+
$res_arr[$index] = $res[0];
|
1048 |
+
$index++;
|
1049 |
+
} // if($res != null)
|
1050 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
1051 |
+
|
1052 |
+
return $res_arr;
|
1053 |
+
} // odb_get_trash()
|
1054 |
+
|
1055 |
+
|
1056 |
+
/********************************************************************************************
|
1057 |
+
* DELETE TRASHED POSTS AND PAGES
|
1058 |
+
********************************************************************************************/
|
1059 |
+
function odb_delete_trash($results, $scheduler, $analyzing) {
|
1060 |
+
global $wpdb;
|
1061 |
+
|
1062 |
+
$nr = 1;
|
1063 |
+
$total_deleted = count($results);
|
1064 |
+
|
1065 |
+
for($i=0; $i<$total_deleted; $i++) {
|
1066 |
+
if(!$scheduler) {
|
1067 |
+
?>
|
1068 |
+
<tr>
|
1069 |
+
<td align="right" valign="top"><?php echo $nr; ?></td>
|
1070 |
+
<td align="left" valign="top"><?php echo $results[$i]['site']?></td>
|
1071 |
+
<td valign="top"><?php echo $results[$i]['post_type']; ?></td>
|
1072 |
+
<td valign="top"><?php echo $results[$i]['title']; ?></td>
|
1073 |
+
<td valign="top" nowrap="nowrap"><?php echo $results[$i]['modified']; ?></td>
|
1074 |
+
</tr>
|
1075 |
+
<?php
|
1076 |
+
} // if(!$scheduler)
|
1077 |
+
|
1078 |
+
if($results[$i]['post_type'] == 'comment') {
|
1079 |
+
// DELETE META DATA (IF ANY...)
|
1080 |
+
if (!$analyzing) {
|
1081 |
+
$sql_delete = sprintf ("
|
1082 |
+
DELETE FROM %scommentmeta
|
1083 |
+
WHERE `comment_id` = %d
|
1084 |
+
", $results[$i]['site'], $results[$i]['id']);
|
1085 |
+
$wpdb->get_results($sql_delete);
|
1086 |
+
} // if (!$analyzing)
|
1087 |
+
} // if($results[$i]['post_type'] == 'comment')
|
1088 |
+
|
1089 |
+
if (!$analyzing) {
|
1090 |
+
// DELETE TRASHED POSTS / PAGES
|
1091 |
+
$sql_delete = sprintf ("
|
1092 |
+
DELETE FROM %sposts
|
1093 |
+
WHERE `post_status` = 'trash'
|
1094 |
+
", $results[$i]['site']);
|
1095 |
+
$wpdb->get_results($sql_delete);
|
1096 |
+
|
1097 |
+
// DELETE TRASHED COMMENTS
|
1098 |
+
$sql_delete = sprintf ("
|
1099 |
+
DELETE FROM %scomments
|
1100 |
+
WHERE `comment_approved` = 'trash'
|
1101 |
+
", $results[$i]['site']);
|
1102 |
+
$wpdb->get_results($sql_delete);
|
1103 |
+
} // if (!$analyzing)
|
1104 |
+
|
1105 |
+
$nr++;
|
1106 |
+
} // for($i=0; $i<count($results); $i++)
|
1107 |
+
|
1108 |
+
return $total_deleted;
|
1109 |
+
} // odb_delete_trash()
|
1110 |
+
|
1111 |
+
|
1112 |
+
/********************************************************************************************
|
1113 |
+
* GET SPAMMED COMMENTS
|
1114 |
+
********************************************************************************************/
|
1115 |
+
function odb_get_spam($analyzing = false) {
|
1116 |
+
global $wpdb, $odb_class;
|
1117 |
+
|
1118 |
+
$res_arr = array();
|
1119 |
+
|
1120 |
+
// LOOP THROUGH SITES
|
1121 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
1122 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];
|
1123 |
+
|
1124 |
+
$sql = sprintf ("
|
1125 |
+
SELECT '%s' AS site,
|
1126 |
+
`comment_ID`,
|
1127 |
+
`comment_author`,
|
1128 |
+
`comment_author_email`,
|
1129 |
+
`comment_date`
|
1130 |
+
FROM %scomments
|
1131 |
+
WHERE `comment_approved` = 'spam'
|
1132 |
+
ORDER BY UCASE(`comment_author`)
|
1133 |
+
", $prefix, $prefix);
|
1134 |
+
|
1135 |
+
$res = $wpdb->get_results($sql, ARRAY_A);
|
1136 |
+
|
1137 |
+
for($j = 0; $j < count($res); $j++) {
|
1138 |
+
array_push($res_arr, $res[$j]);
|
1139 |
+
} // for($j = 0; $j < count($res); $j++)
|
1140 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
1141 |
+
return $res_arr;
|
1142 |
+
} // odb_get_spam()
|
1143 |
+
|
1144 |
+
|
1145 |
+
/********************************************************************************************
|
1146 |
+
* DELETE SPAMMED ITEMS
|
1147 |
+
********************************************************************************************/
|
1148 |
+
function odb_delete_spam($results, $scheduler, $analyzing = false) {
|
1149 |
+
global $wpdb;
|
1150 |
+
|
1151 |
+
$nr = 1;
|
1152 |
+
$total_deleted = count($results);
|
1153 |
+
for($i=0; $i<count($results); $i++) {
|
1154 |
+
if (!$scheduler) {
|
1155 |
+
?>
|
1156 |
+
<tr>
|
1157 |
+
<td align="right" valign="top"><?php echo $nr; ?></td>
|
1158 |
+
<td align="left" valign="top"><?php echo $results[$i]['site']?></td>
|
1159 |
+
<td valign="top"><?php echo $results[$i]['comment_author']; ?></td>
|
1160 |
+
<td valign="top"><?php echo $results[$i]['comment_author_email']; ?></td>
|
1161 |
+
<td valign="top" nowrap="nowrap"><?php echo $results[$i]['comment_date']; ?></td>
|
1162 |
+
</tr>
|
1163 |
+
<?php
|
1164 |
+
} // if (!$scheduler)
|
1165 |
+
|
1166 |
+
if (!$analyzing) {
|
1167 |
+
$sql_delete = sprintf ("
|
1168 |
+
DELETE FROM %scommentmeta
|
1169 |
+
WHERE `comment_id` = %d
|
1170 |
+
", $results[$i]['site'], $results[$i]['comment_ID']);
|
1171 |
+
$wpdb->get_results($sql_delete);
|
1172 |
+
|
1173 |
+
$sql_delete = sprintf ("
|
1174 |
+
DELETE FROM %scomments
|
1175 |
+
WHERE `comment_approved` = 'spam'
|
1176 |
+
", $results[$i]['site']);
|
1177 |
+
$wpdb->get_results($sql_delete);
|
1178 |
+
} // if (!$analyzing)
|
1179 |
+
|
1180 |
+
$nr++;
|
1181 |
+
} // for($i=0; $i<count($results); $i++)
|
1182 |
+
|
1183 |
+
return $total_deleted;
|
1184 |
+
} // odb_delete_spam()
|
1185 |
+
|
1186 |
+
|
1187 |
+
/********************************************************************************************
|
1188 |
+
* GET UNUSED TAGS
|
1189 |
+
********************************************************************************************/
|
1190 |
+
function odb_get_unused_tags($analyzing = false) {
|
1191 |
+
global $wpdb, $odb_class;
|
1192 |
+
|
1193 |
+
$res_arr = array();
|
1194 |
+
|
1195 |
+
// LOOP THROUGH SITES
|
1196 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
1197 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];
|
1198 |
+
|
1199 |
+
$sql = sprintf ("
|
1200 |
+
SELECT '%s' AS site,
|
1201 |
+
a.term_id AS term_id, a.name AS name
|
1202 |
+
FROM `%sterms` a, `%sterm_taxonomy` b
|
1203 |
+
WHERE a.term_id = b.term_id
|
1204 |
+
AND b.taxonomy = 'post_tag'
|
1205 |
+
AND b.term_taxonomy_id NOT IN (
|
1206 |
+
SELECT term_taxonomy_id
|
1207 |
+
FROM %sterm_relationships
|
1208 |
+
)
|
1209 |
+
ORDER BY name
|
1210 |
+
", $prefix, $prefix, $prefix, $prefix);
|
1211 |
+
|
1212 |
+
$res = $wpdb->get_results($sql, ARRAY_A);
|
1213 |
+
|
1214 |
+
for($j = 0; $j < count($res); $j++) {
|
1215 |
+
array_push($res_arr, $res[$j]);
|
1216 |
+
} // for($j = 0; $j < count($res); $j++)
|
1217 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
1218 |
+
return $res_arr;
|
1219 |
+
} // odb_get_unused_tags
|
1220 |
+
|
1221 |
+
|
1222 |
+
/********************************************************************************************
|
1223 |
+
* DELETE UNUSED TAGS
|
1224 |
+
********************************************************************************************/
|
1225 |
+
function odb_delete_unused_tags($results, $scheduler, $analyzing = false) {
|
1226 |
+
global $wpdb, $odb_class;
|
1227 |
+
|
1228 |
+
$nr = 1;
|
1229 |
+
$total_deleted = count($results);
|
1230 |
+
for($i=0; $i<count($results); $i++) {
|
1231 |
+
if (!$scheduler) {
|
1232 |
+
?>
|
1233 |
+
<tr>
|
1234 |
+
<td align="right" valign="top"><?php echo $nr; ?></td>
|
1235 |
+
<td align="left" valign="top"><?php echo $results[$i]['site']?></td>
|
1236 |
+
<td valign="top"><?php echo $results[$i]['name']; ?></td>
|
1237 |
+
</tr>
|
1238 |
+
<?php
|
1239 |
+
} // if (!$scheduler)
|
1240 |
+
|
1241 |
+
if (!$analyzing) {
|
1242 |
+
$sql_del = sprintf ("
|
1243 |
+
DELETE FROM %sterm_taxonomy
|
1244 |
+
WHERE term_id = %d
|
1245 |
+
", $results[$i]['site'], $results[$i]['term_id']);
|
1246 |
+
$wpdb->get_results($sql_del);
|
1247 |
+
|
1248 |
+
$sql_del = sprintf ("
|
1249 |
+
DELETE FROM %sterms
|
1250 |
+
WHERE term_id = %d
|
1251 |
+
", $results[$i]['site'], $results[$i]['term_id']);
|
1252 |
+
$wpdb->get_results($sql_del);
|
1253 |
+
} // if (!$analyzing)
|
1254 |
+
|
1255 |
+
$nr++;
|
1256 |
+
} // for($i=0; $i<count($results); $i++)
|
1257 |
+
|
1258 |
+
return $total_deleted;
|
1259 |
+
} // odb_delete_unused_tags()
|
1260 |
+
|
1261 |
+
|
1262 |
+
/********************************************************************************************
|
1263 |
+
* IS THE UNUSED TAG USED IN ONE OR MORE SCHEDULED POSTS?
|
1264 |
+
********************************************************************************************/
|
1265 |
+
function odb_delete_tags_is_scheduled($term_id, $odb_prefix) {
|
1266 |
+
global $wpdb;
|
1267 |
+
|
1268 |
+
$sql_get_posts = sprintf ("
|
1269 |
+
SELECT p.post_status
|
1270 |
+
FROM %sterm_relationships t, %sposts p
|
1271 |
+
WHERE t.term_taxonomy_id = '%s'
|
1272 |
+
AND t.object_id = p.ID
|
1273 |
+
", $odb_prefix, $odb_prefix, $term_id);
|
1274 |
+
|
1275 |
+
$results_get_posts = $wpdb->get_results($sql_get_posts);
|
1276 |
+
for($i=0; $i<count($results_get_posts); $i++)
|
1277 |
+
if($results_get_posts[$i]->post_status == 'future') return true;
|
1278 |
+
|
1279 |
+
return false;
|
1280 |
+
} // odb_delete_tags_is_scheduled()
|
1281 |
+
|
1282 |
+
/********************************************************************************************
|
1283 |
+
* DELETE TRANSIENTS (v4.7.3)
|
1284 |
+
********************************************************************************************/
|
1285 |
+
function odb_delete_transients($scheduler, $analyzing = false) {
|
1286 |
+
global $wpdb, $odb_class;
|
1287 |
+
|
1288 |
+
$total_deleted = 0;
|
1289 |
+
$nr = 1;
|
1290 |
+
|
1291 |
+
if ($odb_class->odb_rvg_options['clear_transients'] !== 'Y' && $odb_class->odb_rvg_options['clear_transients'] !== 'A') {
|
1292 |
+
// DISABLED
|
1293 |
+
return $total_deleted;
|
1294 |
+
}
|
1295 |
+
|
1296 |
+
// ONE MINUTE DELAY
|
1297 |
+
$delay = time() - 60;
|
1298 |
+
|
1299 |
+
// LOOP THROUGH SITES
|
1300 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
1301 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];
|
1302 |
+
|
1303 |
+
if ($odb_class->odb_rvg_options['clear_transients'] == 'Y') {
|
1304 |
+
// EXPIRED TRANSIENTS ONLY
|
1305 |
+
$sql = "
|
1306 |
+
SELECT '" . $prefix . "' AS site,
|
1307 |
+
`option_name`
|
1308 |
+
FROM " . $prefix . "options
|
1309 |
+
WHERE (
|
1310 |
+
option_name LIKE '_transient_timeout_%'
|
1311 |
+
OR option_name LIKE '_site_transient_timeout_%'
|
1312 |
+
)
|
1313 |
+
AND option_value < '" . $delay . "'" . "
|
1314 |
+
ORDER BY `option_name`
|
1315 |
+
";
|
1316 |
+
|
1317 |
+
// DELETE EXPIRED TRANSINTS FOR THIS (MULTI-) SITE
|
1318 |
+
$sqldel = "
|
1319 |
+
DELETE FROM " . $prefix . "options
|
1320 |
+
WHERE (
|
1321 |
+
option_name LIKE '_transient_timeout_%'
|
1322 |
+
OR option_name LIKE '_site_transient_timeout_%'
|
1323 |
+
)
|
1324 |
+
AND option_value < '" . $delay . "'" . "
|
1325 |
+
";
|
1326 |
+
} else if ($odb_class->odb_rvg_options['clear_transients'] == 'A') {
|
1327 |
+
// ALL TRANSIENTS
|
1328 |
+
$sql = "
|
1329 |
+
SELECT '" . $prefix . "' AS site,
|
1330 |
+
`option_name`
|
1331 |
+
FROM " . $prefix . "options
|
1332 |
+
WHERE (
|
1333 |
+
option_name LIKE '_transient_timeout_%'
|
1334 |
+
OR option_name LIKE '_site_transient_timeout_%'
|
1335 |
+
)
|
1336 |
+
ORDER BY `option_name`
|
1337 |
+
";
|
1338 |
+
|
1339 |
+
// DELETE TRANSINTS FOR THIS (MULTI-) SITE
|
1340 |
+
$sqldel = "
|
1341 |
+
DELETE FROM " . $prefix . "options
|
1342 |
+
WHERE (
|
1343 |
+
option_name LIKE '_transient_timeout_%'
|
1344 |
+
OR option_name LIKE '_site_transient_timeout_%'
|
1345 |
+
)
|
1346 |
+
";
|
1347 |
+
} // if ($odb_class->odb_rvg_options['clear_transients'] == 'Y')
|
1348 |
+
|
1349 |
+
$res = $wpdb->get_results($sql, ARRAY_A);
|
1350 |
+
// ACTUALLY DELETE THE TRANSIENTS
|
1351 |
+
if (!$analyzing) $resdel = $wpdb->get_results($sqldel, ARRAY_A);
|
1352 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
1353 |
+
|
1354 |
+
return $res;
|
1355 |
+
} // odb_delete_transients()
|
1356 |
+
|
1357 |
+
/********************************************************************************************
|
1358 |
+
* GET PINGBACKS AND TRACKBACKS
|
1359 |
+
********************************************************************************************/
|
1360 |
+
function odb_get_pingbacks($analyzing = false) {
|
1361 |
+
|
1362 |
+
global $wpdb, $odb_class;
|
1363 |
+
|
1364 |
+
$res_arr = array();
|
1365 |
+
|
1366 |
+
// LOOP THROUGH SITES
|
1367 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
1368 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];;
|
1369 |
+
|
1370 |
+
$sql = sprintf ("
|
1371 |
+
SELECT '%s' AS site,
|
1372 |
+
`comment_ID`,
|
1373 |
+
`comment_type`,
|
1374 |
+
`comment_author`,
|
1375 |
+
`comment_date`
|
1376 |
+
FROM %scomments
|
1377 |
+
WHERE (
|
1378 |
+
`comment_type` = 'pingback' OR `comment_type` = 'trackback'
|
1379 |
+
)
|
1380 |
+
ORDER BY `comment_type`, `comment_author`
|
1381 |
+
", $prefix, $prefix);
|
1382 |
+
|
1383 |
+
$res = $wpdb->get_results($sql, ARRAY_A);
|
1384 |
+
|
1385 |
+
for($j = 0; $j < count($res); $j++) {
|
1386 |
+
array_push($res_arr, $res[$j]);
|
1387 |
+
} // for($j = 0; $j < count($res); $j++)
|
1388 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
1389 |
+
return $res_arr;
|
1390 |
+
} // odb_get_pingbacks
|
1391 |
+
|
1392 |
+
|
1393 |
+
/********************************************************************************************
|
1394 |
+
* DELETE PINGBACKS AND TRACKBACKS
|
1395 |
+
********************************************************************************************/
|
1396 |
+
function odb_delete_pingbacks($results, $scheduler, $analyzing) {
|
1397 |
+
global $wpdb, $odb_class;
|
1398 |
+
|
1399 |
+
$nr = 1;
|
1400 |
+
$total_deleted = count($results);
|
1401 |
+
for($i=0; $i<count($results); $i++) {
|
1402 |
+
if (!$scheduler) {
|
1403 |
+
?>
|
1404 |
+
<tr>
|
1405 |
+
<td align="right" valign="top"><?php echo $nr; ?></td>
|
1406 |
+
<td align="left" valign="top"><?php echo $results[$i]['site']?></td>
|
1407 |
+
<td valign="top"><?php echo $results[$i]['comment_type']?></td>
|
1408 |
+
<td valign="top"><?php echo $results[$i]['comment_author']?></td>
|
1409 |
+
<td valign="top" nowrap="nowrap"><?php echo $results[$i]['comment_date']; ?></td>
|
1410 |
+
</tr>
|
1411 |
+
<?php
|
1412 |
+
} // if (!$scheduler)
|
1413 |
+
|
1414 |
+
if (!$analyzing) {
|
1415 |
+
for($j=0; $j<count($results); $j++) {
|
1416 |
+
// DELETE METADATA FOR THIS COMMENT (IF ANY)
|
1417 |
+
$sql = sprintf ("
|
1418 |
+
DELETE FROM %scommentmeta
|
1419 |
+
WHERE `comment_id` = %d
|
1420 |
+
", $results[$j]['site'], $results[$j]['comment_ID']);
|
1421 |
+
$wpdb->get_results($sql);
|
1422 |
+
|
1423 |
+
$sql = sprintf ("
|
1424 |
+
DELETE FROM %scomments
|
1425 |
+
WHERE (
|
1426 |
+
`comment_type` = 'pingback'
|
1427 |
+
OR `comment_type` = 'trackback'
|
1428 |
+
)
|
1429 |
+
", $results[$j]['site']);
|
1430 |
+
$wpdb->get_results($sql);
|
1431 |
+
} // for($j=0; $j<count($results); $j++)
|
1432 |
+
} // if (!$analyzing)
|
1433 |
+
|
1434 |
+
$nr++;
|
1435 |
+
} // for($i=0; $i<count($results); $i++)
|
1436 |
+
|
1437 |
+
return $total_deleted;
|
1438 |
+
} // odb_delete_pingbacks()
|
1439 |
+
|
1440 |
+
|
1441 |
+
/********************************************************************************************
|
1442 |
+
* GET OEMBED CACHE
|
1443 |
+
********************************************************************************************/
|
1444 |
+
function odb_get_oembed($analyzing = false) {
|
1445 |
+
global $wpdb, $odb_class;
|
1446 |
+
|
1447 |
+
$res_arr = array();
|
1448 |
+
|
1449 |
+
// LOOP THROUGH SITES
|
1450 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
1451 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];
|
1452 |
+
|
1453 |
+
$sql = sprintf ("
|
1454 |
+
SELECT '%s' AS site,
|
1455 |
+
`meta_id`,
|
1456 |
+
`meta_key`,
|
1457 |
+
`meta_value`
|
1458 |
+
FROM %spostmeta
|
1459 |
+
WHERE `meta_key` LIKE '_oembed_%%'
|
1460 |
+
ORDER BY `meta_key`
|
1461 |
+
", $prefix, $prefix);
|
1462 |
+
|
1463 |
+
$res = $wpdb->get_results($sql, ARRAY_A);
|
1464 |
+
|
1465 |
+
for($j = 0; $j < count($res); $j++) {
|
1466 |
+
array_push($res_arr, $res[$j]);
|
1467 |
+
} // for($j = 0; $j < count($res); $j++)
|
1468 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
1469 |
+
return $res_arr;
|
1470 |
+
} // odb_get_oembed()
|
1471 |
+
|
1472 |
+
|
1473 |
+
/********************************************************************************************
|
1474 |
+
* CLEAR OEMBED CACHE
|
1475 |
+
********************************************************************************************/
|
1476 |
+
function odb_delete_oembed($results, $scheduler, $analyzing) {
|
1477 |
+
global $wpdb, $odb_class;
|
1478 |
+
|
1479 |
+
$nr = 1;
|
1480 |
+
$total_deleted = count($results);
|
1481 |
+
for($i=0; $i<count($results); $i++) {
|
1482 |
+
if (!$scheduler) {
|
1483 |
+
?>
|
1484 |
+
<tr>
|
1485 |
+
<td align="right" valign="top"><?php echo $nr; ?></td>
|
1486 |
+
<td align="left" valign="top"><?php echo $results[$i]['site']?></td>
|
1487 |
+
<td valign="top"><?php echo $results[$i]['meta_key']?></td>
|
1488 |
+
<td valign="top"><?php echo $results[$i]['meta_value']?></td>
|
1489 |
+
</tr>
|
1490 |
+
<?php
|
1491 |
+
} // if (!$scheduler)
|
1492 |
+
|
1493 |
+
if (!$analyzing) {
|
1494 |
+
// DELETE COMMENTS
|
1495 |
+
$sql = sprintf ("
|
1496 |
+
DELETE FROM %spostmeta
|
1497 |
+
WHERE `meta_key` LIKE '_oembed_%%'
|
1498 |
+
", $results[$i]['site']);
|
1499 |
+
|
1500 |
+
$wpdb->get_results($sql);
|
1501 |
+
} // if (!$analyzing)
|
1502 |
+
|
1503 |
+
$nr++;
|
1504 |
+
} // for($i=0; $i<count($results); $i++)
|
1505 |
+
|
1506 |
+
return $total_deleted;
|
1507 |
+
} // odb_delete_oembed()
|
1508 |
+
|
1509 |
+
|
1510 |
+
/********************************************************************************************
|
1511 |
+
* GET ORPHAN POSTMETA AND MEDIA RECORDS
|
1512 |
+
********************************************************************************************/
|
1513 |
+
function odb_get_orphans($results, $scheduler, $analyzing) {
|
1514 |
+
global $wpdb, $odb_class;
|
1515 |
+
|
1516 |
+
$res_arr = array();
|
1517 |
+
|
1518 |
+
// LOOP THROUGH SITES
|
1519 |
+
for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++) {
|
1520 |
+
$prefix = $odb_class->odb_ms_prefixes[$i];
|
1521 |
+
|
1522 |
+
$sql = sprintf ("
|
1523 |
+
SELECT '%s' AS site,
|
1524 |
+
`ID`,
|
1525 |
+
'post' AS type,
|
1526 |
+
`post_title`,
|
1527 |
+
`post_modified`,
|
1528 |
+
'' AS meta_key,
|
1529 |
+
'' AS meta_value
|
1530 |
+
FROM %sposts
|
1531 |
+
WHERE ID NOT IN (SELECT post_id FROM %spostmeta)
|
1532 |
+
AND post_status = 'auto-draft'
|
1533 |
+
ORDER BY `ID`
|
1534 |
+
", $prefix, $prefix, $prefix);
|
1535 |
+
|
1536 |
+
$results = $wpdb->get_results($sql, ARRAY_A);
|
1537 |
+
for ($j = 0; $j < count($results); $j++) {
|
1538 |
+
array_push($res_arr, $results[$j]);
|
1539 |
+
} // for ($j = 0; $j < count($results); $j++)
|
1540 |
+
|
1541 |
+
// DELETE POSTMETA ORPHANS
|
1542 |
+
$sql = sprintf ("
|
1543 |
+
SELECT '%s' AS site,
|
1544 |
+
`post_id` AS ID,
|
1545 |
+
'meta' AS type,
|
1546 |
+
'' AS post_title,
|
1547 |
+
'' AS post_modified,`meta_key`, `meta_value`
|
1548 |
+
FROM %spostmeta
|
1549 |
+
WHERE post_id NOT IN (SELECT ID FROM %sposts)
|
1550 |
+
ORDER BY `meta_key`
|
1551 |
+
", $prefix, $prefix, $prefix);
|
1552 |
+
|
1553 |
+
$results = $wpdb->get_results($sql, ARRAY_A);
|
1554 |
+
for ($j = 0; $j < count($results); $j++) {
|
1555 |
+
array_push($res_arr, $results[$j]);
|
1556 |
+
} // for ($j = 0; $j < count($results); $j++)
|
1557 |
+
} // for($i=0; $i<count($odb_class->odb_ms_prefixes); $i++)
|
1558 |
+
return $res_arr;
|
1559 |
+
} // odb_get_orphans()
|
1560 |
+
|
1561 |
+
|
1562 |
+
/********************************************************************************************
|
1563 |
+
* DELETE ORPHAN POSTMETA AND MEDIA RECORDS
|
1564 |
+
********************************************************************************************/
|
1565 |
+
function odb_delete_orphans($results, $scheduler, $analyzing) {
|
1566 |
+
|
1567 |
+
global $wpdb, $odb_class;
|
1568 |
+
|
1569 |
+
$nr = 1;
|
1570 |
+
$total_deleted = count($results);
|
1571 |
+
for($i=0; $i<count($results); $i++) {
|
1572 |
+
if (!$scheduler) {
|
1573 |
+
?>
|
1574 |
+
<tr>
|
1575 |
+
<td align="right" valign="top"><?php echo $nr; ?></td>
|
1576 |
+
<td align="left" valign="top"><?php echo $results[$i]['site']?></td>
|
1577 |
+
<td valign="top"><?php echo $results[$i]['type']?></td>
|
1578 |
+
<td valign="top"><?php echo $results[$i]['ID']?></td>
|
1579 |
+
<td valign="top"><?php echo $results[$i]['post_title']?></td>
|
1580 |
+
<td valign="top" nowrap="nowrap"><?php echo substr($results[$i]['post_modified'], 0, 10); ?></td>
|
1581 |
+
<td valign="top" nowrap="nowrap"><?php echo $results[$i]['meta_key']; ?></td>
|
1582 |
+
<td valign="top" nowrap="nowrap"><?php echo $results[$i]['meta_value']; ?></td>
|
1583 |
+
</tr>
|
1584 |
+
<?php
|
1585 |
+
} // if (!$scheduler)
|
1586 |
+
|
1587 |
+
if (!$analyzing) {
|
1588 |
+
for($j=0; $j<count($results); $j++) {
|
1589 |
+
// DELETE METADATA FOR THIS COMMENT (IF ANY)
|
1590 |
+
if ($results[$j]['type'] == 'meta') {
|
1591 |
+
$sql = sprintf ("
|
1592 |
+
DELETE FROM %spostmeta
|
1593 |
+
WHERE `post_id` = %d
|
1594 |
+
", $results[$j]['site'], $results[$j]['ID']);
|
1595 |
+
} else if ($results[$j]['type'] == 'post') {
|
1596 |
+
$sql = sprintf ("
|
1597 |
+
DELETE FROM %sposts
|
1598 |
+
WHERE `ID` = %d
|
1599 |
+
", $results[$j]['site'], $results[$j]['ID']);
|
1600 |
+
} // if ($results[$j]['type'] == 'meta')
|
1601 |
+
//echo 'SQL: ' . $sql.'<br>';
|
1602 |
+
$wpdb->get_results($sql);
|
1603 |
+
}// for($j=0; $j<count($results); $j++)
|
1604 |
+
} // if (!$analyzing)
|
1605 |
+
$nr++;
|
1606 |
+
} // for($i=0; $i<count($results); $i++)
|
1607 |
+
|
1608 |
+
return $total_deleted;
|
1609 |
+
} // odb_delete_orphans()
|
1610 |
+
|
1611 |
+
|
1612 |
+
/********************************************************************************************
|
1613 |
+
* OPTIMIZE DATABASE TABLES
|
1614 |
+
********************************************************************************************/
|
1615 |
+
function odb_optimize_tables($scheduler) {
|
1616 |
+
global $odb_class, $wpdb;
|
1617 |
+
|
1618 |
+
$cnt = 0;
|
1619 |
+
for ($i=0; $i<count($odb_class->odb_tables); $i++) {
|
1620 |
+
if(!isset($odb_class->odb_rvg_excluded_tabs[$odb_class->odb_tables[$i][0]])) {
|
1621 |
+
# TABLE NOT EXCLUDED
|
1622 |
+
$cnt++;
|
1623 |
+
|
1624 |
+
$sql = sprintf ("
|
1625 |
+
SELECT engine, (data_length + index_length) AS size, table_rows
|
1626 |
+
FROM information_schema.TABLES
|
1627 |
+
WHERE table_schema = '%s'
|
1628 |
+
AND table_name = '%s'
|
1629 |
+
", DB_NAME, $odb_class->odb_tables[$i][0]);
|
1630 |
+
$table_info = $wpdb->get_results($sql);
|
1631 |
+
|
1632 |
+
if($odb_class->odb_rvg_options["optimize_innodb"] == 'N' && strtolower($table_info[0]->engine) == 'innodb') {
|
1633 |
+
// SKIP InnoDB tables
|
1634 |
+
$msg = __('InnoDB table: skipped...', 'rvg-optimize-database');
|
1635 |
+
} else {
|
1636 |
+
// v4.6.3
|
1637 |
+
if (strtolower($table_info[0]->engine) == 'myisam') {
|
1638 |
+
$result = $this->odb_optimize_myisam($odb_class->odb_tables[$i][0]);
|
1639 |
+
$msg = $result[0]->Msg_text;
|
1640 |
+
if ($msg == 'OK') {
|
1641 |
+
$msg = __('<span class="odb-optimized">TABLE OPTIMIZED</span>', 'rvg-optimize-database');
|
1642 |
+
} else if ($msg == 'Table is already up to date') {
|
1643 |
+
$msg = __('Table is already up to date', 'rvg-optimize-database');
|
1644 |
+
}
|
1645 |
+
} else {
|
1646 |
+
$result = $this->odb_optimize_innodb($odb_class->odb_tables[$i][0]);
|
1647 |
+
$msg = $result[0]->Msg_text;
|
1648 |
+
if ($msg == 'Table is already up to date') {
|
1649 |
+
$msg = __('Table is already up to date', 'rvg-optimize-database');
|
1650 |
+
} else {
|
1651 |
+
$msg = __('<span class="odb-optimized">TABLE OPTIMIZED</span>', 'rvg-optimize-database');
|
1652 |
+
}
|
1653 |
+
} // if (strtolower($table_info[0]->engine) == 'myisam')
|
1654 |
+
} // if($odb_class->odb_rvg_options["optimize_innodb"] == 'N' && strtolower($table_info[0]->engine) == 'innodb')
|
1655 |
+
|
1656 |
+
if (!$scheduler)
|
1657 |
+
{ // NOT FROM THE SCEDULER
|
1658 |
+
?>
|
1659 |
+
<tr>
|
1660 |
+
<td align="right" valign="top"><?php echo $cnt?>.</td>
|
1661 |
+
<td valign="top" class="odb-bold"><?php echo $odb_class->odb_tables[$i][0] ?></td>
|
1662 |
+
<td valign="top"><?php echo $msg ?></td>
|
1663 |
+
<td valign="top"><?php echo $table_info[0]->engine ?></td>
|
1664 |
+
<td align="right" valign="top"><?php echo $table_info[0]->table_rows ?></td>
|
1665 |
+
<td align="right" valign="top"><?php echo $odb_class->odb_utilities_obj->odb_format_size($table_info[0]->size) ?></td>
|
1666 |
+
</tr>
|
1667 |
+
<?php
|
1668 |
+
} // if (!$scheduler)
|
1669 |
+
} // if(!$excluded)
|
1670 |
+
} // for ($i=0; $i<count($tables); $i++)
|
1671 |
+
return $cnt;
|
1672 |
+
|
1673 |
+
} // odb_optimize_tables()
|
1674 |
+
|
1675 |
+
|
1676 |
+
/********************************************************************************************
|
1677 |
+
* OPTIMIZE A MyISAM TABLE
|
1678 |
+
********************************************************************************************/
|
1679 |
+
function odb_optimize_myisam($table_name) {
|
1680 |
+
global $wpdb;
|
1681 |
+
$query = "OPTIMIZE TABLE " . $table_name;
|
1682 |
+
return $wpdb->get_results($query);
|
1683 |
+
} // odb_optimize_myisam()
|
1684 |
+
|
1685 |
+
|
1686 |
+
/********************************************************************************************
|
1687 |
+
* OPTIMIZE AN InnoDB TABLE
|
1688 |
+
********************************************************************************************/
|
1689 |
+
function odb_optimize_innodb($table_name) {
|
1690 |
+
global $wpdb;
|
1691 |
+
|
1692 |
+
$query = "OPTIMIZE TABLE " . $table_name;
|
1693 |
+
return $wpdb->get_results($query);
|
1694 |
+
|
1695 |
+
/* // https://www.percona.com/blog/2010/12/09/mysql-optimize-tables-innodb-stop/
|
1696 |
+
$query = "SHOW KEYS FROM " . $table_name . " WHERE Key_name <> 'PRIMARY'";
|
1697 |
+
$result = $wpdb->get_results($query);
|
1698 |
+
if (count($result) > 0) {
|
1699 |
+
for ($i = 0; $i < count($result); $i++) {
|
1700 |
+
$key_name = $result[$i]->Key_name;
|
1701 |
+
|
1702 |
+
$query = "ALTER TABLE " . $table_name . " DROP KEY " . $key_name;
|
1703 |
+
$result = $wpdb->get_results($query);
|
1704 |
+
|
1705 |
+
$query = "ALTER TABLE " . $table_name . " add key(" . $key_name . ")";
|
1706 |
+
$result = $wpdb->get_results($query);
|
1707 |
+
} // for ($i = 0; $i < count($result); $i++)
|
1708 |
+
return __('<span class="odb-optimized">TABLE OPTIMIZED</span>', 'rvg-optimize-database');
|
1709 |
+
} else {
|
1710 |
+
return __('Table is already up to date', 'rvg-optimize-database');
|
1711 |
+
} // if (count($result) > 0*/
|
1712 |
+
} // odb_optimize_innodb()
|
1713 |
+
|
1714 |
+
} // ODB_Cleaner
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1715 |
?>
|
language/rvg-optimize-database-de_DE.mo
CHANGED
Binary file
|
language/rvg-optimize-database-de_DE.po
CHANGED
@@ -2,9 +2,9 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Optimize Database after Deleting Revisions\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator:
|
8 |
"Language-Team: \n"
|
9 |
"Language: de\n"
|
10 |
"MIME-Version: 1.0\n"
|
@@ -12,464 +12,774 @@ msgstr ""
|
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-Basepath: C
|
16 |
"X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
|
17 |
"__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
18 |
"_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
|
19 |
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
|
20 |
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
|
21 |
"X-Loco-Target-Locale: de_DE\n"
|
22 |
-
"X-Generator: Poedit
|
|
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
-
#: classes/odb-cleaner.php:
|
|
|
|
|
|
|
|
|
26 |
msgid "Cleaning Database"
|
27 |
msgstr "Datenbank bereiningen"
|
28 |
|
29 |
-
#: classes/odb-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
msgid "DELETED REVISIONS"
|
31 |
msgstr "GELÖSCHTE REVISIONEN"
|
32 |
|
33 |
-
#: classes/odb-cleaner.php:
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
msgid "prefix"
|
36 |
msgstr "Präfix"
|
37 |
|
38 |
-
#: classes/odb-cleaner.php:
|
39 |
msgid "post / page"
|
40 |
msgstr "Beitrag / Seite"
|
41 |
|
42 |
-
#: classes/odb-cleaner.php:
|
43 |
msgid "revision date"
|
44 |
msgstr "Datum"
|
45 |
|
46 |
-
#: classes/odb-cleaner.php:
|
47 |
-
msgid "revisions
|
48 |
-
msgstr "Revisionen
|
49 |
|
50 |
-
#: classes/odb-cleaner.php:
|
51 |
msgid "total number of revisions deleted"
|
52 |
msgstr "insgesamt gelöschte Revisionen"
|
53 |
|
54 |
-
#: classes/odb-cleaner.php:
|
55 |
msgid "No REVISIONS found to delete"
|
56 |
-
msgstr "Keine
|
57 |
|
58 |
-
#: classes/odb-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
msgid "DELETED TRASHED ITEMS"
|
60 |
msgstr "Aus dem Papierkorb gelöscht"
|
61 |
|
62 |
-
#: classes/odb-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
63 |
msgid "type"
|
64 |
msgstr "Typ"
|
65 |
|
66 |
-
#: classes/odb-cleaner.php:
|
67 |
msgid "IP address / title"
|
68 |
msgstr "IP Adresse / Titel"
|
69 |
|
70 |
-
#: classes/odb-cleaner.php:
|
|
|
71 |
msgid "date"
|
72 |
msgstr "Datum"
|
73 |
|
74 |
-
#: classes/odb-cleaner.php:
|
75 |
-
msgid "total number of trashed items deleted"
|
76 |
-
msgstr "gesamt gelöscht"
|
77 |
-
|
78 |
-
#: classes/odb-cleaner.php:170
|
79 |
msgid "No TRASHED ITEMS found to delete"
|
80 |
-
msgstr "Nichts zum Löschen im
|
81 |
-
|
82 |
-
#: classes/odb-cleaner.php:198
|
83 |
-
msgid "DELETEED SPAMMED ITEMS"
|
84 |
-
msgstr "Gelöschte Spambeiträge"
|
85 |
|
86 |
-
#: classes/odb-cleaner.php:
|
87 |
-
msgid "
|
88 |
-
msgstr "
|
89 |
|
90 |
-
#: classes/odb-cleaner.php:
|
91 |
-
msgid "
|
92 |
-
msgstr "
|
93 |
-
|
94 |
-
#: classes/odb-cleaner.php:206
|
95 |
-
msgid "comment date"
|
96 |
-
msgstr "Datum"
|
97 |
|
98 |
#: classes/odb-cleaner.php:218
|
|
|
|
|
|
|
|
|
99 |
msgid "total number of spammed items deleted"
|
100 |
msgstr "gesamt Spam gelöscht"
|
101 |
|
102 |
#: classes/odb-cleaner.php:231
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
msgid "No SPAMMED ITEMS found to delete"
|
104 |
-
msgstr "kein
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
-
#: classes/odb-cleaner.php:
|
107 |
-
msgid "
|
108 |
-
msgstr "
|
109 |
|
110 |
-
#: classes/odb-cleaner.php:
|
111 |
-
msgid "
|
112 |
-
msgstr "
|
113 |
|
114 |
-
#: classes/odb-cleaner.php:
|
115 |
-
msgid "
|
116 |
-
msgstr "
|
117 |
|
118 |
-
#: classes/odb-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
msgid "No EXPIRED TRANSIENTS found to delete"
|
120 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
-
#: classes/odb-cleaner.php:
|
123 |
-
msgid "
|
124 |
-
msgstr "
|
125 |
|
126 |
-
#: classes/odb-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
msgid "No PINGBACKS nor TRACKBACKS found to delete"
|
128 |
-
msgstr "keine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
-
#: classes/odb-cleaner.php:
|
131 |
-
msgid "
|
132 |
-
msgstr "
|
133 |
|
134 |
-
#: classes/odb-cleaner.php:
|
135 |
msgid "No POSTMETA ORPHANS found to delete"
|
136 |
-
msgstr "keine
|
137 |
|
138 |
-
#: classes/odb-cleaner.php:
|
139 |
msgid "Optimizing Database Tables"
|
140 |
-
msgstr "Tabellen
|
141 |
|
142 |
-
#: classes/odb-cleaner.php:
|
143 |
msgid "table name"
|
144 |
msgstr "Tabelle"
|
145 |
|
146 |
-
#: classes/odb-cleaner.php:
|
147 |
msgid "optimization result"
|
148 |
msgstr "Ergebnis"
|
149 |
|
150 |
-
#: classes/odb-cleaner.php:
|
151 |
msgid "engine"
|
152 |
msgstr "Typ"
|
153 |
|
154 |
-
#: classes/odb-cleaner.php:
|
155 |
msgid "table rows"
|
156 |
msgstr "Zeilen"
|
157 |
|
158 |
-
#: classes/odb-cleaner.php:
|
159 |
msgid "table size"
|
160 |
msgstr "Größe"
|
161 |
|
162 |
-
#: classes/odb-cleaner.php:
|
163 |
msgid "Savings"
|
164 |
msgstr "Einsparungen"
|
165 |
|
166 |
-
#: classes/odb-cleaner.php:
|
167 |
msgid "size of the database"
|
168 |
msgstr "Datenbank-Größe"
|
169 |
|
170 |
-
#: classes/odb-cleaner.php:
|
171 |
msgid "BEFORE optimization"
|
172 |
msgstr "VORHER"
|
173 |
|
174 |
-
#: classes/odb-cleaner.php:
|
175 |
msgid "AFTER optimization"
|
176 |
msgstr "NACHHER"
|
177 |
|
178 |
-
#: classes/odb-cleaner.php:
|
179 |
msgid "SAVINGS THIS TIME"
|
180 |
msgstr "Einsparungen bei diesem Lauf"
|
181 |
|
182 |
-
#: classes/odb-cleaner.php:
|
183 |
msgid "TOTAL SAVINGS SINCE THE FIRST RUN"
|
184 |
msgstr "Einsparungen insgesamt seit dem ersten Lauf"
|
185 |
|
186 |
-
#: classes/odb-cleaner.php:
|
187 |
msgid "DONE!"
|
188 |
msgstr "FERTIG!"
|
189 |
|
190 |
-
#: classes/odb-cleaner.php:
|
191 |
-
msgid "
|
192 |
-
msgstr "
|
193 |
|
194 |
-
#: classes/odb-cleaner.php:
|
|
|
195 |
msgid "seconds"
|
196 |
msgstr "Sekunden"
|
197 |
|
198 |
-
#: classes/odb-cleaner.php:
|
199 |
-
msgid "
|
200 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
|
202 |
-
#: classes/odb-cleaner.php:
|
203 |
-
msgid "
|
204 |
-
msgstr "
|
205 |
|
206 |
-
#: classes/odb-cleaner.php:
|
207 |
msgid "InnoDB table: skipped..."
|
208 |
-
msgstr "InnoDB table:
|
209 |
|
210 |
-
#: classes/odb-cleaner.php:
|
211 |
msgid "<span class=\"odb-optimized\">TABLE OPTIMIZED</span>"
|
212 |
msgstr "<span class=\"odb-optimized\">TABELLE OPTIMIERT</span>"
|
213 |
|
214 |
-
#: classes/odb-cleaner.php:
|
215 |
msgid "Table is already up to date"
|
216 |
msgstr "Tabelle ist aktuell"
|
217 |
|
218 |
-
#: classes/odb-displayer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
msgid "YES"
|
220 |
msgstr "JA"
|
221 |
|
222 |
-
#: classes/odb-displayer.php:
|
223 |
msgid "NO"
|
224 |
msgstr "NEIN"
|
225 |
|
226 |
-
#: classes/odb-displayer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
msgid "EVERY FIVE MINUTES"
|
228 |
-
msgstr ""
|
229 |
|
230 |
-
#: classes/odb-displayer.php:
|
231 |
msgid "ONCE HOURLY"
|
232 |
msgstr "STÜNDLICH"
|
233 |
|
234 |
-
#: classes/odb-displayer.php:
|
235 |
msgid "TWICE DAILY"
|
236 |
msgstr "ZWEIMAL TÄGLICH"
|
237 |
|
238 |
-
#: classes/odb-displayer.php:
|
239 |
msgid "ONCE DAILY"
|
240 |
msgstr "EINMAL TÄGLICH"
|
241 |
|
242 |
-
#: classes/odb-displayer.php:
|
243 |
msgid "ONCE WEEKLY"
|
244 |
msgstr "WÖCHENTLICH"
|
245 |
|
246 |
-
#: classes/odb-displayer.php:
|
|
|
|
|
|
|
|
|
247 |
msgid "NOT SCHEDULED"
|
248 |
-
msgstr "
|
249 |
|
250 |
-
#: classes/odb-displayer.php:
|
251 |
msgid "Current settings"
|
252 |
-
msgstr "
|
|
|
|
|
|
|
|
|
253 |
|
254 |
-
#: classes/odb-displayer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
msgid "Maximum number of - most recent - revisions to keep per post / page"
|
256 |
-
msgstr "Maximal gespeicherte Anzahl Revisionen pro Beitrag / Seite"
|
257 |
|
258 |
-
#: classes/odb-displayer.php:
|
259 |
msgid "Delete trashed items"
|
260 |
msgstr "Papierkorb leeren"
|
261 |
|
262 |
-
#: classes/odb-displayer.php:
|
263 |
msgid "Delete spammed items"
|
264 |
msgstr "Spam löschen"
|
265 |
|
266 |
-
#: classes/odb-displayer.php:
|
267 |
msgid "Delete unused tags"
|
268 |
-
msgstr "Unbenutzte
|
269 |
|
270 |
-
#: classes/odb-displayer.php:
|
271 |
-
msgid "Delete
|
272 |
-
msgstr "
|
273 |
|
274 |
-
#: classes/odb-displayer.php:
|
275 |
msgid "Delete pingbacks and trackbacks"
|
276 |
msgstr "Pingbacks und Trackbacks löschen"
|
277 |
|
278 |
-
#: classes/odb-displayer.php:
|
|
|
|
|
|
|
|
|
279 |
msgid "Keep a log"
|
280 |
-
msgstr "
|
281 |
|
282 |
-
#: classes/odb-displayer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
msgid "Last run"
|
284 |
-
msgstr ""
|
285 |
|
286 |
-
#: classes/odb-displayer.php:
|
287 |
-
#: includes/settings-page.php:208
|
288 |
msgid "hrs"
|
289 |
-
msgstr "
|
290 |
|
291 |
-
#: classes/odb-displayer.php:
|
292 |
-
msgid "
|
293 |
-
msgstr "
|
294 |
|
295 |
-
#: classes/odb-displayer.php:
|
296 |
msgid "Scheduler"
|
297 |
msgstr "Zeitplan"
|
298 |
|
299 |
-
#: classes/odb-displayer.php:
|
300 |
msgid "Next scheduled run"
|
301 |
msgstr "Nächste geplante Optimierung"
|
302 |
|
303 |
-
#: classes/odb-displayer.php:
|
304 |
-
msgid "current server time"
|
305 |
-
msgstr ""
|
306 |
-
|
307 |
-
#: classes/odb-displayer.php:78
|
308 |
msgid "Total savings since the first run"
|
309 |
msgstr "Einsparungen insgesamt seit erstem Lauf"
|
310 |
|
311 |
-
#: classes/odb-displayer.php:
|
312 |
-
msgid "
|
313 |
-
msgstr "
|
314 |
|
315 |
-
#: classes/odb-displayer.php:
|
316 |
-
msgid ""
|
317 |
-
|
318 |
-
msgstr ""
|
319 |
|
320 |
-
#: classes/odb-displayer.php:
|
321 |
-
msgid "
|
322 |
-
msgstr ""
|
323 |
|
324 |
-
#: classes/odb-displayer.php:
|
325 |
-
msgid "Plugin page"
|
326 |
-
msgstr ""
|
327 |
-
|
328 |
-
#: classes/odb-displayer.php:103
|
329 |
-
msgid "Download page"
|
330 |
-
msgstr ""
|
331 |
-
|
332 |
-
#: classes/odb-displayer.php:104
|
333 |
-
msgid "Author"
|
334 |
-
msgstr ""
|
335 |
-
|
336 |
-
#: classes/odb-displayer.php:105
|
337 |
-
msgid "Company"
|
338 |
-
msgstr ""
|
339 |
-
|
340 |
-
#: classes/odb-displayer.php:106
|
341 |
-
msgid "Donation page"
|
342 |
-
msgstr ""
|
343 |
-
|
344 |
-
#: classes/odb-displayer.php:124
|
345 |
msgid "Change Settings"
|
346 |
msgstr "Einstellungen ändern"
|
347 |
|
348 |
-
#: classes/odb-displayer.php:
|
|
|
|
|
|
|
|
|
|
|
349 |
msgid "Start Optimization"
|
350 |
msgstr "Optimierung starten"
|
351 |
|
352 |
-
#: classes/odb-logger.php:
|
353 |
-
msgid "
|
354 |
-
msgstr "
|
355 |
|
356 |
-
#: classes/odb-logger.php:
|
357 |
-
msgid "
|
358 |
-
msgstr "Niederlande"
|
359 |
-
|
360 |
-
#: classes/odb-logger.php:59
|
361 |
-
msgid "time"
|
362 |
-
msgstr "Zeit"
|
363 |
-
|
364 |
-
#: classes/odb-logger.php:60
|
365 |
-
msgid "deleted<br />revisions"
|
366 |
msgstr "gelöschte<br />Revisionen"
|
367 |
|
368 |
-
#: classes/odb-logger.php:
|
369 |
-
msgid "deleted<br
|
370 |
msgstr "gelöschter<br />Papierkorb"
|
371 |
|
372 |
-
#: classes/odb-logger.php:
|
373 |
-
msgid "deleted<br
|
374 |
msgstr "gelöschter<br />Spam"
|
375 |
|
376 |
-
#: classes/odb-logger.php:
|
377 |
-
msgid "deleted<br
|
378 |
-
msgstr "gelöschte<br />
|
379 |
|
380 |
-
#: classes/odb-logger.php:
|
381 |
-
msgid "deleted<br
|
382 |
msgstr "gelöschte<br />Zwischenversionen"
|
383 |
|
384 |
-
#: classes/odb-logger.php:
|
385 |
-
msgid "deleted<br
|
386 |
msgstr "gelöschte<br />Pingbacks<br />Trackbacks"
|
387 |
|
388 |
-
#: classes/odb-logger.php:
|
389 |
-
msgid "deleted<br
|
390 |
-
msgstr "gelöschte<br
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
|
392 |
-
#: classes/odb-logger.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
msgid "nr of optimized tables"
|
394 |
msgstr "optimierte Tabellen"
|
395 |
|
396 |
-
#: classes/odb-logger.php:
|
397 |
msgid "database size BEFORE"
|
398 |
msgstr "Datenbankgröße VORHER"
|
399 |
|
400 |
-
#: classes/odb-logger.php:
|
401 |
msgid "database size AFTER"
|
402 |
msgstr "Datenbankgröße NACHHER"
|
403 |
|
404 |
-
#: classes/odb-
|
405 |
-
msgid "SAVINGS"
|
406 |
-
msgstr "Einsparungen"
|
407 |
-
|
408 |
-
#: classes/odb-scheduler.php:34
|
409 |
msgid "Once Weekly"
|
410 |
msgstr "einmal wöchentlich"
|
411 |
|
412 |
-
#: classes/odb-scheduler.php:
|
|
|
|
|
|
|
|
|
413 |
msgid "Every Five Minutes"
|
414 |
-
msgstr ""
|
415 |
|
416 |
-
#: includes/settings-page.php:
|
417 |
msgid "Optimize Database after Deleting Revisions SETTINGS UPDATED"
|
418 |
msgstr "Einstellungen aktualisiert"
|
419 |
|
420 |
-
#: includes/settings-page.php:
|
421 |
msgid ""
|
422 |
"Click <a href=\"tools.php?page=rvg-optimize-database\" class=\"odb-bold"
|
423 |
"\">HERE</a> to run the optimization"
|
424 |
msgstr ""
|
|
|
|
|
425 |
|
426 |
-
#: includes/settings-page.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
msgid "Settings"
|
428 |
msgstr "Einstellungen"
|
429 |
|
430 |
-
#: includes/settings-page.php:
|
431 |
-
msgid "
|
432 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
433 |
|
434 |
-
#: includes/settings-page.php:
|
|
|
|
|
|
|
|
|
435 |
msgid "('0' means: delete <u>ALL</u> revisions)"
|
436 |
-
msgstr "('0' bedeutet: <u>ALLE</u>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
|
438 |
-
#: includes/settings-page.php:
|
439 |
msgid "run optimization HOURLY"
|
440 |
msgstr "STÜNDLICH optimieren"
|
441 |
|
442 |
-
#: includes/settings-page.php:
|
443 |
msgid "run optimization TWICE A DAY"
|
444 |
msgstr "ZWEIMAL TÄGLICH optimieren"
|
445 |
|
446 |
-
#: includes/settings-page.php:
|
447 |
msgid "run optimization DAILY"
|
448 |
msgstr "TÄGLICH optimieren"
|
449 |
|
450 |
-
#: includes/settings-page.php:
|
451 |
msgid "run optimization WEEKLY"
|
452 |
msgstr "WÖCHENTLICH optimieren"
|
453 |
|
454 |
-
#: includes/settings-page.php:
|
|
|
|
|
|
|
|
|
455 |
msgid "Time"
|
456 |
msgstr "Zeit"
|
457 |
|
458 |
-
#: includes/settings-page.php:
|
459 |
msgid "Show '1-click' link in Admin Bar"
|
460 |
-
msgstr "Zeige
|
|
|
|
|
|
|
|
|
461 |
|
462 |
-
#: includes/settings-page.php:
|
463 |
-
msgid "
|
464 |
msgstr "(Änderungen werden sichtbar, nachdem die nächste Seite geladen wurde)"
|
465 |
|
466 |
-
#: includes/settings-page.php:
|
467 |
-
msgid "
|
468 |
-
msgstr "
|
469 |
|
470 |
-
#: includes/settings-page.php:
|
|
|
|
|
|
|
|
|
471 |
msgid ""
|
472 |
-
"EXCLUDE DATABASE TABLES FROM OPTIMIZATION
|
473 |
"\">CHECKED</span> TABLES <span class=\"odb-underline-red\">WON'T</span> BE "
|
474 |
"OPTIMIZED!</span>"
|
475 |
msgstr ""
|
@@ -477,39 +787,160 @@ msgstr ""
|
|
477 |
"\">MARKIERTE</span> TABELLEN WERDEN <span class=\"odb-underline-red\">NICHT</"
|
478 |
"span> OPTIMIERT!</span>"
|
479 |
|
480 |
-
#: includes/settings-page.php:
|
481 |
msgid "check all tables"
|
482 |
msgstr "alle Tabellen markieren"
|
483 |
|
484 |
-
#: includes/settings-page.php:
|
485 |
msgid "uncheck all tables"
|
486 |
msgstr "alle Markierungen entfernen"
|
487 |
|
488 |
-
#: includes/settings-page.php:
|
489 |
msgid "check all NON-WordPress tables"
|
490 |
msgstr "alle NICHT-WordPress-Tabellen markieren"
|
491 |
|
492 |
-
#:
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
#: includes/settings-page.php:278
|
497 |
-
msgid "Go To Optimizer"
|
498 |
-
msgstr "Zur Optimierung"
|
499 |
-
|
500 |
-
#: rvg-optimize-db.php:229 rvg-optimize-db.php:230 rvg-optimize-db.php:244
|
501 |
-
#: rvg-optimize-db.php:245 rvg-optimize-db.php:286 rvg-optimize-db.php:287
|
502 |
-
#: rvg-optimize-db.php:305 rvg-optimize-db.php:306
|
503 |
msgid "Optimize Database"
|
504 |
msgstr "Datenbank optimieren"
|
505 |
|
506 |
-
#: rvg-optimize-
|
507 |
msgid "Optimize DB (1 click)"
|
508 |
msgstr "DB optimieren (1 Klick)"
|
509 |
|
510 |
-
#: rvg-optimize-
|
511 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
512 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
513 |
|
514 |
#~ msgid ""
|
515 |
#~ "Click <a href=\"tools.php?page=rvg-optimize-db.php\" class=\"odb-bold"
|
@@ -523,10 +954,6 @@ msgstr ""
|
|
523 |
#~ "ist ein 1-Klick Plugin zum Bereinigen und Optimieren der WordPress "
|
524 |
#~ "Datenbank"
|
525 |
|
526 |
-
#~ msgid ""
|
527 |
-
#~ "Maximum number of - most recent - revisions<br />to keep per post / page"
|
528 |
-
#~ msgstr "Maximal gespeicherte Anzahl<br />Revisionen pro Beitrag / Seite"
|
529 |
-
|
530 |
#~ msgid "Optimize your WordPress Database"
|
531 |
#~ msgstr "WordPress Datenbank optimieren"
|
532 |
|
@@ -541,3 +968,108 @@ msgstr ""
|
|
541 |
|
542 |
#~ msgid "Download URL:"
|
543 |
#~ msgstr "Download URL:"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Optimize Database after Deleting Revisions\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-09 18:34+0100\n"
|
6 |
+
"PO-Revision-Date: 2018-12-12 06:01+0100\n"
|
7 |
+
"Last-Translator: Kolja Spyra <mail@kolja-spyra.de>\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: de\n"
|
10 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
+
"X-Poedit-Basepath: C:/My Dropbox/WordPress/wp-plugins/rvg-optimize-db\n"
|
16 |
"X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
|
17 |
"__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
18 |
"_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
|
19 |
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
|
20 |
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
|
21 |
"X-Loco-Target-Locale: de_DE\n"
|
22 |
+
"X-Generator: Poedit 2.2\n"
|
23 |
+
"X-Poedit-Flags-xgettext: --add-comments\n"
|
24 |
"X-Poedit-SearchPath-0: .\n"
|
25 |
|
26 |
+
#: classes/odb-cleaner.php:32
|
27 |
+
msgid "Analyzing Database"
|
28 |
+
msgstr "Datenbank Analysieren"
|
29 |
+
|
30 |
+
#: classes/odb-cleaner.php:41
|
31 |
msgid "Cleaning Database"
|
32 |
msgstr "Datenbank bereiningen"
|
33 |
|
34 |
+
#: classes/odb-cleaner.php:90
|
35 |
+
msgid "REVISIONS"
|
36 |
+
msgstr "REVISIONEN"
|
37 |
+
|
38 |
+
#: classes/odb-cleaner.php:91
|
39 |
+
msgid "revisions"
|
40 |
+
msgstr "Revisionen"
|
41 |
+
|
42 |
+
#: classes/odb-cleaner.php:93
|
43 |
msgid "DELETED REVISIONS"
|
44 |
msgstr "GELÖSCHTE REVISIONEN"
|
45 |
|
46 |
+
#: classes/odb-cleaner.php:94
|
47 |
+
msgid "revisions deleted"
|
48 |
+
msgstr "Revisionen gelöscht"
|
49 |
+
|
50 |
+
#: classes/odb-cleaner.php:103 classes/odb-cleaner.php:169
|
51 |
+
#: classes/odb-cleaner.php:230 classes/odb-cleaner.php:292
|
52 |
+
#: classes/odb-cleaner.php:362 classes/odb-cleaner.php:426
|
53 |
+
#: classes/odb-cleaner.php:488 classes/odb-cleaner.php:552
|
54 |
msgid "prefix"
|
55 |
msgstr "Präfix"
|
56 |
|
57 |
+
#: classes/odb-cleaner.php:104
|
58 |
msgid "post / page"
|
59 |
msgstr "Beitrag / Seite"
|
60 |
|
61 |
+
#: classes/odb-cleaner.php:105
|
62 |
msgid "revision date"
|
63 |
msgstr "Datum"
|
64 |
|
65 |
+
#: classes/odb-cleaner.php:116
|
66 |
+
msgid "total number of revisions"
|
67 |
+
msgstr "Gesamt Anzahl der Revisionen"
|
68 |
|
69 |
+
#: classes/odb-cleaner.php:118
|
70 |
msgid "total number of revisions deleted"
|
71 |
msgstr "insgesamt gelöschte Revisionen"
|
72 |
|
73 |
+
#: classes/odb-cleaner.php:131
|
74 |
msgid "No REVISIONS found to delete"
|
75 |
+
msgstr "Keine REVISIONEN zum Löschen gefunden"
|
76 |
|
77 |
+
#: classes/odb-cleaner.php:154
|
78 |
+
msgid "TRASHED ITEMS"
|
79 |
+
msgstr "GELÖSCHTE EINTRÄGE"
|
80 |
+
|
81 |
+
#: classes/odb-cleaner.php:155
|
82 |
+
msgid "total number of trashed items"
|
83 |
+
msgstr "Gesamtzahl der gelöschten Einträge"
|
84 |
+
|
85 |
+
#: classes/odb-cleaner.php:157
|
86 |
msgid "DELETED TRASHED ITEMS"
|
87 |
msgstr "Aus dem Papierkorb gelöscht"
|
88 |
|
89 |
+
#: classes/odb-cleaner.php:158
|
90 |
+
msgid "total number of trashed items deleted"
|
91 |
+
msgstr "gesamt gelöscht"
|
92 |
+
|
93 |
+
#: classes/odb-cleaner.php:170 classes/odb-cleaner.php:427
|
94 |
+
#: classes/odb-cleaner.php:553
|
95 |
msgid "type"
|
96 |
msgstr "Typ"
|
97 |
|
98 |
+
#: classes/odb-cleaner.php:171
|
99 |
msgid "IP address / title"
|
100 |
msgstr "IP Adresse / Titel"
|
101 |
|
102 |
+
#: classes/odb-cleaner.php:172 classes/odb-cleaner.php:429
|
103 |
+
#: classes/odb-logger.php:114 classes/odb-logger.php:242
|
104 |
msgid "date"
|
105 |
msgstr "Datum"
|
106 |
|
107 |
+
#: classes/odb-cleaner.php:192
|
|
|
|
|
|
|
|
|
108 |
msgid "No TRASHED ITEMS found to delete"
|
109 |
+
msgstr "Nichts zum Löschen im PAPIERKORB gefunden"
|
|
|
|
|
|
|
|
|
110 |
|
111 |
+
#: classes/odb-cleaner.php:215
|
112 |
+
msgid "SPAMMED ITEMS"
|
113 |
+
msgstr "SPAM EINTRÄGE"
|
114 |
|
115 |
+
#: classes/odb-cleaner.php:216
|
116 |
+
msgid "total number of spammed items"
|
117 |
+
msgstr "Gesamtzahl der spam Einträge"
|
|
|
|
|
|
|
|
|
118 |
|
119 |
#: classes/odb-cleaner.php:218
|
120 |
+
msgid "DELETED SPAMMED ITEMS"
|
121 |
+
msgstr "GELÖSCHTE SPAM EINTRÄGE"
|
122 |
+
|
123 |
+
#: classes/odb-cleaner.php:219
|
124 |
msgid "total number of spammed items deleted"
|
125 |
msgstr "gesamt Spam gelöscht"
|
126 |
|
127 |
#: classes/odb-cleaner.php:231
|
128 |
+
msgid "comment author"
|
129 |
+
msgstr "Kommentar Autor"
|
130 |
+
|
131 |
+
#: classes/odb-cleaner.php:232
|
132 |
+
msgid "comment author email"
|
133 |
+
msgstr "Kommentar Autor E-Mail"
|
134 |
+
|
135 |
+
#: classes/odb-cleaner.php:233
|
136 |
+
msgid "comment date"
|
137 |
+
msgstr "Kommentar Datum"
|
138 |
+
|
139 |
+
#: classes/odb-cleaner.php:253
|
140 |
msgid "No SPAMMED ITEMS found to delete"
|
141 |
+
msgstr "kein SPAM EINTRÄGE zum Löschen gefunden"
|
142 |
+
|
143 |
+
#: classes/odb-cleaner.php:277
|
144 |
+
msgid "UNUSED TAGS"
|
145 |
+
msgstr "UNBENUTZTE SCHLAGWORTE"
|
146 |
+
|
147 |
+
#: classes/odb-cleaner.php:278
|
148 |
+
msgid "total number of unused tags"
|
149 |
+
msgstr "Gesamtzahl der ungenutzten Schlagworte"
|
150 |
+
|
151 |
+
#: classes/odb-cleaner.php:280
|
152 |
+
msgid "DELETED UNUSED TAGS"
|
153 |
+
msgstr "GELÖSCHTE UNBENUTZTE SCHLAGWORTE"
|
154 |
+
|
155 |
+
#: classes/odb-cleaner.php:281
|
156 |
+
msgid "total number of unused tags deleted"
|
157 |
+
msgstr "Gesamtzahl der ungenutzten Schlagworte gelöscht"
|
158 |
+
|
159 |
+
#: classes/odb-cleaner.php:293
|
160 |
+
msgid "tag"
|
161 |
+
msgstr "Schlagwort"
|
162 |
+
|
163 |
+
#: classes/odb-cleaner.php:313
|
164 |
+
msgid "No UNUSED TAGE found to delete"
|
165 |
+
msgstr "Kein UNBENUTZTEN SCHLAGWORTE gefunden, um zu löschen"
|
166 |
+
|
167 |
+
#: classes/odb-cleaner.php:338
|
168 |
+
msgid "EXPIRED TRANSIENTS"
|
169 |
+
msgstr "ABGELAUFENEN ZWISCHENVERSIONEN "
|
170 |
|
171 |
+
#: classes/odb-cleaner.php:339
|
172 |
+
msgid "total number of expired transients"
|
173 |
+
msgstr "Gesamtzahl der abgelaufenen Zwischenversionen"
|
174 |
|
175 |
+
#: classes/odb-cleaner.php:341
|
176 |
+
msgid "EXPIRED TRANSIENTS DELETED"
|
177 |
+
msgstr "ABGELAUFENE ZWISCHENVERSIONEN GELÖSCHT"
|
178 |
|
179 |
+
#: classes/odb-cleaner.php:342
|
180 |
+
msgid "total number of expired transients deleted"
|
181 |
+
msgstr "Gesamtzahl abgelaufener gelöschter Zwischenversionen"
|
182 |
|
183 |
+
#: classes/odb-cleaner.php:346
|
184 |
+
msgid "TRANSIENTS"
|
185 |
+
msgstr "TRANSIENTEN"
|
186 |
+
|
187 |
+
#: classes/odb-cleaner.php:347 classes/odb-cleaner.php:350
|
188 |
+
msgid "total number of transients"
|
189 |
+
msgstr "Gesamtzahl der Zwischenversionen"
|
190 |
+
|
191 |
+
#: classes/odb-cleaner.php:349
|
192 |
+
msgid "TRANSIENTS DELETED"
|
193 |
+
msgstr "ZWISCHENVERSIONEN GELÖSCHT"
|
194 |
+
|
195 |
+
#: classes/odb-cleaner.php:363
|
196 |
+
msgid "option name"
|
197 |
+
msgstr "Optionsname"
|
198 |
+
|
199 |
+
#: classes/odb-cleaner.php:385
|
200 |
msgid "No EXPIRED TRANSIENTS found to delete"
|
201 |
+
msgstr "Keine ABGELAUFENEN ZWISCHENVERSIONEN zum Löschen gefunden"
|
202 |
+
|
203 |
+
#: classes/odb-cleaner.php:387
|
204 |
+
msgid "No TRANSIENTS found to delete"
|
205 |
+
msgstr "keine abgelaufenen ZWISCHENVERSIONEN zum Löschen gefunden"
|
206 |
+
|
207 |
+
#: classes/odb-cleaner.php:411
|
208 |
+
msgid "PINGBACKS AND TRACKBACKS"
|
209 |
+
msgstr "PINGBACKS UND TRACKBACKS"
|
210 |
+
|
211 |
+
#: classes/odb-cleaner.php:412
|
212 |
+
msgid "total number of pingbacks and trackbacks"
|
213 |
+
msgstr "Gesamtzahl der Pingbacks und Trackbacks"
|
214 |
|
215 |
+
#: classes/odb-cleaner.php:414
|
216 |
+
msgid "DELETED PINGBACKS AND TRACKBACKS"
|
217 |
+
msgstr "GELÖSCHTE PINGBACKS UND TRACKBACKS"
|
218 |
|
219 |
+
#: classes/odb-cleaner.php:415
|
220 |
+
msgid "total number of pingbacks and trackbacks deleted"
|
221 |
+
msgstr "Gesamtzahl der gelöschten Pingbacks und Trackbacks "
|
222 |
+
|
223 |
+
#: classes/odb-cleaner.php:428
|
224 |
+
msgid "comment_author"
|
225 |
+
msgstr "Kommentar Autor"
|
226 |
+
|
227 |
+
#: classes/odb-cleaner.php:449
|
228 |
msgid "No PINGBACKS nor TRACKBACKS found to delete"
|
229 |
+
msgstr "keine PINGBACKS und TRACKBACKS zum Löschen gefunden"
|
230 |
+
|
231 |
+
#: classes/odb-cleaner.php:473
|
232 |
+
msgid "OEMBED CACHE"
|
233 |
+
msgstr "OEMBED CACHE"
|
234 |
+
|
235 |
+
#: classes/odb-cleaner.php:474
|
236 |
+
msgid "total number of oEmbeds"
|
237 |
+
msgstr "Gesamtzahl der oEmbeds"
|
238 |
+
|
239 |
+
#: classes/odb-cleaner.php:476
|
240 |
+
msgid "DELETED OEMBEDS"
|
241 |
+
msgstr "GELÖSCHTE OEMBEDS"
|
242 |
+
|
243 |
+
#: classes/odb-cleaner.php:477
|
244 |
+
msgid "total number of oEmbeds deleted"
|
245 |
+
msgstr "Gesamtzahl der gelöschten oEmbeds"
|
246 |
+
|
247 |
+
#: classes/odb-cleaner.php:489 classes/odb-cleaner.php:557
|
248 |
+
msgid "meta key"
|
249 |
+
msgstr "Meta-Schlüssel"
|
250 |
+
|
251 |
+
#: classes/odb-cleaner.php:490 classes/odb-cleaner.php:558
|
252 |
+
msgid "meta value"
|
253 |
+
msgstr "Meta-Wert"
|
254 |
+
|
255 |
+
#: classes/odb-cleaner.php:510
|
256 |
+
msgid "No OEMED CHACHE found to delete"
|
257 |
+
msgstr "Kein OEMBED CACHE gefunden, der geleert werden konnte"
|
258 |
+
|
259 |
+
#: classes/odb-cleaner.php:534
|
260 |
+
msgid "POSTMETA ORPHANS"
|
261 |
+
msgstr "VERWAISTE META EINTRÄGE"
|
262 |
+
|
263 |
+
#: classes/odb-cleaner.php:535 classes/odb-cleaner.php:538
|
264 |
+
msgid "total number of orphans"
|
265 |
+
msgstr "Gesamtzahl der Waisen Einträge"
|
266 |
+
|
267 |
+
#: classes/odb-cleaner.php:537
|
268 |
+
msgid "DELETED POSTMETA ORPHANS"
|
269 |
+
msgstr "GELÖSCHTE VERWAISTE META EINTRÄGE"
|
270 |
+
|
271 |
+
#: classes/odb-cleaner.php:554 classes/odb-logger.php:241
|
272 |
+
msgid "id"
|
273 |
+
msgstr "ID"
|
274 |
+
|
275 |
+
#: classes/odb-cleaner.php:555
|
276 |
+
msgid "title"
|
277 |
+
msgstr "Titel"
|
278 |
|
279 |
+
#: classes/odb-cleaner.php:556
|
280 |
+
msgid "modified"
|
281 |
+
msgstr "geändert"
|
282 |
|
283 |
+
#: classes/odb-cleaner.php:579
|
284 |
msgid "No POSTMETA ORPHANS found to delete"
|
285 |
+
msgstr "keine VERWAISTEN METADATEN zum Löschen gefunden"
|
286 |
|
287 |
+
#: classes/odb-cleaner.php:606
|
288 |
msgid "Optimizing Database Tables"
|
289 |
+
msgstr "Optimiere Datenbank Tabellen"
|
290 |
|
291 |
+
#: classes/odb-cleaner.php:613
|
292 |
msgid "table name"
|
293 |
msgstr "Tabelle"
|
294 |
|
295 |
+
#: classes/odb-cleaner.php:614
|
296 |
msgid "optimization result"
|
297 |
msgstr "Ergebnis"
|
298 |
|
299 |
+
#: classes/odb-cleaner.php:615
|
300 |
msgid "engine"
|
301 |
msgstr "Typ"
|
302 |
|
303 |
+
#: classes/odb-cleaner.php:616
|
304 |
msgid "table rows"
|
305 |
msgstr "Zeilen"
|
306 |
|
307 |
+
#: classes/odb-cleaner.php:617
|
308 |
msgid "table size"
|
309 |
msgstr "Größe"
|
310 |
|
311 |
+
#: classes/odb-cleaner.php:664
|
312 |
msgid "Savings"
|
313 |
msgstr "Einsparungen"
|
314 |
|
315 |
+
#: classes/odb-cleaner.php:671
|
316 |
msgid "size of the database"
|
317 |
msgstr "Datenbank-Größe"
|
318 |
|
319 |
+
#: classes/odb-cleaner.php:674
|
320 |
msgid "BEFORE optimization"
|
321 |
msgstr "VORHER"
|
322 |
|
323 |
+
#: classes/odb-cleaner.php:678
|
324 |
msgid "AFTER optimization"
|
325 |
msgstr "NACHHER"
|
326 |
|
327 |
+
#: classes/odb-cleaner.php:682
|
328 |
msgid "SAVINGS THIS TIME"
|
329 |
msgstr "Einsparungen bei diesem Lauf"
|
330 |
|
331 |
+
#: classes/odb-cleaner.php:686
|
332 |
msgid "TOTAL SAVINGS SINCE THE FIRST RUN"
|
333 |
msgstr "Einsparungen insgesamt seit dem ersten Lauf"
|
334 |
|
335 |
+
#: classes/odb-cleaner.php:712
|
336 |
msgid "DONE!"
|
337 |
msgstr "FERTIG!"
|
338 |
|
339 |
+
#: classes/odb-cleaner.php:720
|
340 |
+
msgid "Analysis took"
|
341 |
+
msgstr "Analyse dauerte"
|
342 |
|
343 |
+
#: classes/odb-cleaner.php:720 classes/odb-cleaner.php:724
|
344 |
+
#: classes/odb-displayer.php:139 classes/odb-displayer.php:174
|
345 |
msgid "seconds"
|
346 |
msgstr "Sekunden"
|
347 |
|
348 |
+
#: classes/odb-cleaner.php:724
|
349 |
+
msgid "Optimization took"
|
350 |
+
msgstr "Optimierung dauerte"
|
351 |
+
|
352 |
+
#: classes/odb-cleaner.php:738 classes/odb-displayer.php:196
|
353 |
+
#: classes/odb-logger.php:157
|
354 |
+
msgid "Clear the log?"
|
355 |
+
msgstr "Protokoll löschen?"
|
356 |
+
|
357 |
+
#: classes/odb-cleaner.php:748 classes/odb-displayer.php:215
|
358 |
+
msgid "View Log"
|
359 |
+
msgstr "Protokoll anzeigen"
|
360 |
+
|
361 |
+
#: classes/odb-cleaner.php:750 classes/odb-displayer.php:217
|
362 |
+
#: classes/odb-logger.php:170
|
363 |
+
msgid "Clear Log"
|
364 |
+
msgstr "Protokoll löschen"
|
365 |
|
366 |
+
#: classes/odb-cleaner.php:991
|
367 |
+
msgid "of"
|
368 |
+
msgstr "von"
|
369 |
|
370 |
+
#: classes/odb-cleaner.php:1655
|
371 |
msgid "InnoDB table: skipped..."
|
372 |
+
msgstr "InnoDB table: übersprungen…"
|
373 |
|
374 |
+
#: classes/odb-cleaner.php:1662 classes/odb-cleaner.php:1672
|
375 |
msgid "<span class=\"odb-optimized\">TABLE OPTIMIZED</span>"
|
376 |
msgstr "<span class=\"odb-optimized\">TABELLE OPTIMIERT</span>"
|
377 |
|
378 |
+
#: classes/odb-cleaner.php:1664 classes/odb-cleaner.php:1670
|
379 |
msgid "Table is already up to date"
|
380 |
msgstr "Tabelle ist aktuell"
|
381 |
|
382 |
+
#: classes/odb-displayer.php:29
|
383 |
+
msgid "Optimize Database after Deleting Revisions"
|
384 |
+
msgstr "Datenbank bereinigen und optimieren"
|
385 |
+
|
386 |
+
#: classes/odb-displayer.php:33
|
387 |
+
msgid ""
|
388 |
+
"A popular 'one-click' plugin to clean and optimize your WordPress database."
|
389 |
+
msgstr ""
|
390 |
+
"Eine populäre „Ein-Klick“-Erweiterung, um Ihre WordPress-Datenbank zu "
|
391 |
+
"reinigen und zu optimieren."
|
392 |
+
|
393 |
+
#: classes/odb-displayer.php:34
|
394 |
+
msgid "Plugin version"
|
395 |
+
msgstr "Erweiterungs-Version"
|
396 |
+
|
397 |
+
#: classes/odb-displayer.php:34
|
398 |
+
msgid "Plugin page"
|
399 |
+
msgstr "Hersteller-Seite"
|
400 |
+
|
401 |
+
#: classes/odb-displayer.php:34
|
402 |
+
msgid "Download page"
|
403 |
+
msgstr "WordPress-Seite"
|
404 |
+
|
405 |
+
#: classes/odb-displayer.php:34
|
406 |
+
msgid "Author"
|
407 |
+
msgstr "Herausgeber"
|
408 |
+
|
409 |
+
#: classes/odb-displayer.php:34
|
410 |
+
msgid "Company"
|
411 |
+
msgstr "Unternehmen"
|
412 |
+
|
413 |
+
#: classes/odb-displayer.php:63
|
414 |
msgid "YES"
|
415 |
msgstr "JA"
|
416 |
|
417 |
+
#: classes/odb-displayer.php:64
|
418 |
msgid "NO"
|
419 |
msgstr "NEIN"
|
420 |
|
421 |
+
#: classes/odb-displayer.php:72 includes/settings-page.php:325
|
422 |
+
msgid "DELETE EXPIRED TRANSIENTS"
|
423 |
+
msgstr "LÖSCHE ABGELAUFENEN ZWISCHENVERSIONEN "
|
424 |
+
|
425 |
+
#: classes/odb-displayer.php:74 includes/settings-page.php:328
|
426 |
+
msgid "DELETE ALL TRANSIENTS"
|
427 |
+
msgstr "LÖSCHE ALLE ZWISCHENVERSIONEN "
|
428 |
+
|
429 |
+
#: classes/odb-displayer.php:86
|
430 |
msgid "EVERY FIVE MINUTES"
|
431 |
+
msgstr "ALLE FÜNF MINUTEN"
|
432 |
|
433 |
+
#: classes/odb-displayer.php:88
|
434 |
msgid "ONCE HOURLY"
|
435 |
msgstr "STÜNDLICH"
|
436 |
|
437 |
+
#: classes/odb-displayer.php:90
|
438 |
msgid "TWICE DAILY"
|
439 |
msgstr "ZWEIMAL TÄGLICH"
|
440 |
|
441 |
+
#: classes/odb-displayer.php:92
|
442 |
msgid "ONCE DAILY"
|
443 |
msgstr "EINMAL TÄGLICH"
|
444 |
|
445 |
+
#: classes/odb-displayer.php:94
|
446 |
msgid "ONCE WEEKLY"
|
447 |
msgstr "WÖCHENTLICH"
|
448 |
|
449 |
+
#: classes/odb-displayer.php:96
|
450 |
+
msgid "ONCE MONTHLY"
|
451 |
+
msgstr "EINMAL MONATLICH"
|
452 |
+
|
453 |
+
#: classes/odb-displayer.php:97 includes/settings-page.php:371
|
454 |
msgid "NOT SCHEDULED"
|
455 |
+
msgstr "NICHT PLANEN"
|
456 |
|
457 |
+
#: classes/odb-displayer.php:102
|
458 |
msgid "Current settings"
|
459 |
+
msgstr "Aktuelle Einstellungen"
|
460 |
+
|
461 |
+
#: classes/odb-displayer.php:117
|
462 |
+
msgid "NONE"
|
463 |
+
msgstr "KEINE"
|
464 |
|
465 |
+
#: classes/odb-displayer.php:119
|
466 |
+
msgid "Delete revisions of"
|
467 |
+
msgstr "Lösche Revisionen von"
|
468 |
+
|
469 |
+
#: classes/odb-displayer.php:122 includes/settings-page.php:155
|
470 |
+
#: includes/settings-page.php:267
|
471 |
+
msgid "Delete revisions older than"
|
472 |
+
msgstr "Revisionen löschen, die älter sind als"
|
473 |
+
|
474 |
+
#: classes/odb-displayer.php:122 classes/odb-displayer.php:170
|
475 |
+
msgid "days"
|
476 |
+
msgstr "Tage"
|
477 |
+
|
478 |
+
#: classes/odb-displayer.php:126
|
479 |
msgid "Maximum number of - most recent - revisions to keep per post / page"
|
480 |
+
msgstr "Maximal gespeicherte Anzahl von Revisionen pro Beitrag / Seite"
|
481 |
|
482 |
+
#: classes/odb-displayer.php:130 includes/settings-page.php:300
|
483 |
msgid "Delete trashed items"
|
484 |
msgstr "Papierkorb leeren"
|
485 |
|
486 |
+
#: classes/odb-displayer.php:131 includes/settings-page.php:306
|
487 |
msgid "Delete spammed items"
|
488 |
msgstr "Spam löschen"
|
489 |
|
490 |
+
#: classes/odb-displayer.php:132 includes/settings-page.php:312
|
491 |
msgid "Delete unused tags"
|
492 |
+
msgstr "Unbenutzte Schlagworte löschen"
|
493 |
|
494 |
+
#: classes/odb-displayer.php:133 includes/settings-page.php:318
|
495 |
+
msgid "Delete transients"
|
496 |
+
msgstr "Zwischenversionen löschen"
|
497 |
|
498 |
+
#: classes/odb-displayer.php:134 includes/settings-page.php:337
|
499 |
msgid "Delete pingbacks and trackbacks"
|
500 |
msgstr "Pingbacks und Trackbacks löschen"
|
501 |
|
502 |
+
#: classes/odb-displayer.php:135 includes/settings-page.php:343
|
503 |
+
msgid "Clear oEmbed cache"
|
504 |
+
msgstr "oEmbed-Cache leeren"
|
505 |
+
|
506 |
+
#: classes/odb-displayer.php:136 includes/settings-page.php:361
|
507 |
msgid "Keep a log"
|
508 |
+
msgstr "Protokoll mitschreiben"
|
509 |
|
510 |
+
#: classes/odb-displayer.php:137
|
511 |
+
msgid "Optimize InnoDB tables"
|
512 |
+
msgstr "InnoDB-Tabellen optimieren"
|
513 |
+
|
514 |
+
#: classes/odb-displayer.php:138
|
515 |
+
msgid "Number of excluded tables"
|
516 |
+
msgstr "Anzahl ausgeschlossener Tabellen"
|
517 |
+
|
518 |
+
#: classes/odb-displayer.php:139
|
519 |
msgid "Last run"
|
520 |
+
msgstr "Letzte Ausführung"
|
521 |
|
522 |
+
#: classes/odb-displayer.php:139 includes/settings-page.php:405
|
|
|
523 |
msgid "hrs"
|
524 |
+
msgstr "Uhr"
|
525 |
|
526 |
+
#: classes/odb-displayer.php:139
|
527 |
+
msgid "in"
|
528 |
+
msgstr "vor"
|
529 |
|
530 |
+
#: classes/odb-displayer.php:140 includes/settings-page.php:367
|
531 |
msgid "Scheduler"
|
532 |
msgstr "Zeitplan"
|
533 |
|
534 |
+
#: classes/odb-displayer.php:150
|
535 |
msgid "Next scheduled run"
|
536 |
msgstr "Nächste geplante Optimierung"
|
537 |
|
538 |
+
#: classes/odb-displayer.php:155
|
|
|
|
|
|
|
|
|
539 |
msgid "Total savings since the first run"
|
540 |
msgstr "Einsparungen insgesamt seit erstem Lauf"
|
541 |
|
542 |
+
#: classes/odb-displayer.php:171
|
543 |
+
msgid "hours"
|
544 |
+
msgstr "Stunden"
|
545 |
|
546 |
+
#: classes/odb-displayer.php:172
|
547 |
+
msgid "minutes"
|
548 |
+
msgstr "Minuten"
|
|
|
549 |
|
550 |
+
#: classes/odb-displayer.php:173
|
551 |
+
msgid "and"
|
552 |
+
msgstr "und"
|
553 |
|
554 |
+
#: classes/odb-displayer.php:189 classes/odb-logger.php:168
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
555 |
msgid "Change Settings"
|
556 |
msgstr "Einstellungen ändern"
|
557 |
|
558 |
+
#: classes/odb-displayer.php:224
|
559 |
+
msgid "Analyze Database"
|
560 |
+
msgstr "Datenbank analysieren"
|
561 |
+
|
562 |
+
#: classes/odb-displayer.php:226 classes/odb-logger.php:174
|
563 |
+
#: rvg-optimize-database.php:674
|
564 |
msgid "Start Optimization"
|
565 |
msgstr "Optimierung starten"
|
566 |
|
567 |
+
#: classes/odb-logger.php:102
|
568 |
+
msgid "Logs"
|
569 |
+
msgstr "Protokolle"
|
570 |
|
571 |
+
#: classes/odb-logger.php:115
|
572 |
+
msgid "deleted<br>revisions"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
msgstr "gelöschte<br />Revisionen"
|
574 |
|
575 |
+
#: classes/odb-logger.php:116
|
576 |
+
msgid "deleted<br>trash"
|
577 |
msgstr "gelöschter<br />Papierkorb"
|
578 |
|
579 |
+
#: classes/odb-logger.php:117
|
580 |
+
msgid "deleted<br>spam"
|
581 |
msgstr "gelöschter<br />Spam"
|
582 |
|
583 |
+
#: classes/odb-logger.php:118
|
584 |
+
msgid "deleted<br>tags"
|
585 |
+
msgstr "gelöschte<br />Schlagworte"
|
586 |
|
587 |
+
#: classes/odb-logger.php:119
|
588 |
+
msgid "deleted<br>transients"
|
589 |
msgstr "gelöschte<br />Zwischenversionen"
|
590 |
|
591 |
+
#: classes/odb-logger.php:120
|
592 |
+
msgid "deleted<br>pingbacks<br>trackbacks"
|
593 |
msgstr "gelöschte<br />Pingbacks<br />Trackbacks"
|
594 |
|
595 |
+
#: classes/odb-logger.php:121
|
596 |
+
msgid "deleted<br>oEmbed<br>records"
|
597 |
+
msgstr "gelöschte<br>oEmbed<br>Datensätze"
|
598 |
+
|
599 |
+
#: classes/odb-logger.php:122
|
600 |
+
msgid "deleted<br>orphans"
|
601 |
+
msgstr "gelöschte<br />cerwaiste Einträge"
|
602 |
+
|
603 |
+
#: classes/odb-logger.php:123
|
604 |
+
msgid "nr of<br>optimized<br>tables"
|
605 |
+
msgstr "Anzahl<br>optimierter<br>Tabellen"
|
606 |
+
|
607 |
+
#: classes/odb-logger.php:124
|
608 |
+
msgid "database<br> size<br>BEFORE"
|
609 |
+
msgstr "Datenbank<br>Größe<br>VORHER"
|
610 |
+
|
611 |
+
#: classes/odb-logger.php:125
|
612 |
+
msgid "database<br>size<br>AFTER"
|
613 |
+
msgstr "Datenbank<br>Größe<br>DANACH"
|
614 |
+
|
615 |
+
#: classes/odb-logger.php:126 classes/odb-logger.php:253
|
616 |
+
msgid "SAVINGS"
|
617 |
+
msgstr "Einsparungen"
|
618 |
+
|
619 |
+
#: classes/odb-logger.php:172
|
620 |
+
msgid "Export to CSV"
|
621 |
+
msgstr "Als CSV exportieren"
|
622 |
+
|
623 |
+
#: classes/odb-logger.php:243
|
624 |
+
msgid "deleted revisions"
|
625 |
+
msgstr "gelöschte Revisionen"
|
626 |
+
|
627 |
+
#: classes/odb-logger.php:244
|
628 |
+
msgid "deleted trash"
|
629 |
+
msgstr "gelöschter Papierkorb"
|
630 |
+
|
631 |
+
#: classes/odb-logger.php:245
|
632 |
+
msgid "deleted spam"
|
633 |
+
msgstr "gelöschter Spam"
|
634 |
+
|
635 |
+
#: classes/odb-logger.php:246
|
636 |
+
msgid "deleted tags"
|
637 |
+
msgstr "gelöschte Schlagworte"
|
638 |
|
639 |
+
#: classes/odb-logger.php:247
|
640 |
+
msgid "deleted transients"
|
641 |
+
msgstr "gelöschte Zwischenversionen"
|
642 |
+
|
643 |
+
#: classes/odb-logger.php:248
|
644 |
+
msgid "deleted pingbacks"
|
645 |
+
msgstr "geklöschte Pingbacks Pingbacks"
|
646 |
+
|
647 |
+
#: classes/odb-logger.php:249
|
648 |
+
msgid "deleted orphans"
|
649 |
+
msgstr "gelöschte verwaiste Einträge"
|
650 |
+
|
651 |
+
#: classes/odb-logger.php:250
|
652 |
msgid "nr of optimized tables"
|
653 |
msgstr "optimierte Tabellen"
|
654 |
|
655 |
+
#: classes/odb-logger.php:251
|
656 |
msgid "database size BEFORE"
|
657 |
msgstr "Datenbankgröße VORHER"
|
658 |
|
659 |
+
#: classes/odb-logger.php:252
|
660 |
msgid "database size AFTER"
|
661 |
msgstr "Datenbankgröße NACHHER"
|
662 |
|
663 |
+
#: classes/odb-scheduler.php:38
|
|
|
|
|
|
|
|
|
664 |
msgid "Once Weekly"
|
665 |
msgstr "einmal wöchentlich"
|
666 |
|
667 |
+
#: classes/odb-scheduler.php:42
|
668 |
+
msgid "Once Monthly"
|
669 |
+
msgstr "Einmal monatlich"
|
670 |
+
|
671 |
+
#: classes/odb-scheduler.php:47
|
672 |
msgid "Every Five Minutes"
|
673 |
+
msgstr "Alle Fünf Minuten"
|
674 |
|
675 |
+
#: includes/settings-page.php:118
|
676 |
msgid "Optimize Database after Deleting Revisions SETTINGS UPDATED"
|
677 |
msgstr "Einstellungen aktualisiert"
|
678 |
|
679 |
+
#: includes/settings-page.php:120
|
680 |
msgid ""
|
681 |
"Click <a href=\"tools.php?page=rvg-optimize-database\" class=\"odb-bold"
|
682 |
"\">HERE</a> to run the optimization"
|
683 |
msgstr ""
|
684 |
+
"Klicken Sie <a href=\"tools.php?page=rvg-optimize-database\" class=\"odb-bold"
|
685 |
+
"\">HIER </a>, um die Optimierung auszuführen"
|
686 |
|
687 |
+
#: includes/settings-page.php:155
|
688 |
+
msgid "You have to enter: "
|
689 |
+
msgstr "Sie müssen eingeben:"
|
690 |
+
|
691 |
+
#: includes/settings-page.php:160
|
692 |
+
msgid "<Delete revisions older than> should be a number"
|
693 |
+
msgstr "<Löschen von Revisionen, älter als> sollte eine Zahl sein"
|
694 |
+
|
695 |
+
#: includes/settings-page.php:168
|
696 |
+
msgid "You have to enter the <Maximum number of revisions>"
|
697 |
+
msgstr "Sie müssen die maximale Anzahl von Revisionen eingeben"
|
698 |
+
|
699 |
+
#: includes/settings-page.php:173
|
700 |
+
msgid "<Maximum number of revisions> should be a number"
|
701 |
+
msgstr "<Maximalzahl der Zwischenversionen> sollte eine Zahl sein"
|
702 |
+
|
703 |
+
#: includes/settings-page.php:231 rvg-optimize-database.php:464
|
704 |
msgid "Settings"
|
705 |
msgstr "Einstellungen"
|
706 |
|
707 |
+
#: includes/settings-page.php:236
|
708 |
+
msgid "Delete revisions for the following (custom) post type(s):"
|
709 |
msgstr ""
|
710 |
+
"Revisionen für folgende (benutzerdefinierte) Beitragsarten-Typen löschen:"
|
711 |
+
|
712 |
+
#: includes/settings-page.php:272
|
713 |
+
msgid "day(s)"
|
714 |
+
msgstr "Tag(e)"
|
715 |
|
716 |
+
#: includes/settings-page.php:284
|
717 |
+
msgid "Maximum number of - most recent - revisions<br>to keep per post / page"
|
718 |
+
msgstr "Maximale Anzahl der-letzten-Revisionen<br>pro Beitrag/Seite"
|
719 |
+
|
720 |
+
#: includes/settings-page.php:290
|
721 |
msgid "('0' means: delete <u>ALL</u> revisions)"
|
722 |
+
msgstr "('0' bedeutet: <u>ALLE</u> Revisoren werden gelöscht)"
|
723 |
+
|
724 |
+
#: includes/settings-page.php:322
|
725 |
+
msgid "DO NOT DELETE TRANSIENTS"
|
726 |
+
msgstr "ZWISCHENVERSIONEN NICHT LÖSCHEN"
|
727 |
+
|
728 |
+
#: includes/settings-page.php:349
|
729 |
+
msgid "Clear orphans"
|
730 |
+
msgstr "Verwaiste Einträge löschen"
|
731 |
+
|
732 |
+
#: includes/settings-page.php:355
|
733 |
+
msgid "Optimize InnoDB tables too"
|
734 |
+
msgstr "InnoDB-Tabellen optimieren"
|
735 |
|
736 |
+
#: includes/settings-page.php:374
|
737 |
msgid "run optimization HOURLY"
|
738 |
msgstr "STÜNDLICH optimieren"
|
739 |
|
740 |
+
#: includes/settings-page.php:377
|
741 |
msgid "run optimization TWICE A DAY"
|
742 |
msgstr "ZWEIMAL TÄGLICH optimieren"
|
743 |
|
744 |
+
#: includes/settings-page.php:380
|
745 |
msgid "run optimization DAILY"
|
746 |
msgstr "TÄGLICH optimieren"
|
747 |
|
748 |
+
#: includes/settings-page.php:383
|
749 |
msgid "run optimization WEEKLY"
|
750 |
msgstr "WÖCHENTLICH optimieren"
|
751 |
|
752 |
+
#: includes/settings-page.php:386
|
753 |
+
msgid "run optimization MONTHLY"
|
754 |
+
msgstr "MONATLICH optimieren"
|
755 |
+
|
756 |
+
#: includes/settings-page.php:396
|
757 |
msgid "Time"
|
758 |
msgstr "Zeit"
|
759 |
|
760 |
+
#: includes/settings-page.php:420
|
761 |
msgid "Show '1-click' link in Admin Bar"
|
762 |
+
msgstr "Zeige einen ‚1-Klick' Link in der Adminleiste"
|
763 |
+
|
764 |
+
#: includes/settings-page.php:426
|
765 |
+
msgid "Show an icon in the Admin Menu"
|
766 |
+
msgstr "Zeige ein Symbol im Admin-Menü"
|
767 |
|
768 |
+
#: includes/settings-page.php:431
|
769 |
+
msgid "change will be visible after loading the next page"
|
770 |
msgstr "(Änderungen werden sichtbar, nachdem die nächste Seite geladen wurde)"
|
771 |
|
772 |
+
#: includes/settings-page.php:436 includes/settings-page.php:482
|
773 |
+
msgid "Save Settings"
|
774 |
+
msgstr "Einstellungen speichern"
|
775 |
|
776 |
+
#: includes/settings-page.php:438 includes/settings-page.php:484
|
777 |
+
msgid "Go To Optimizer"
|
778 |
+
msgstr "Zur Optimierung"
|
779 |
+
|
780 |
+
#: includes/settings-page.php:445
|
781 |
msgid ""
|
782 |
+
"EXCLUDE DATABASE TABLES FROM OPTIMIZATION:<br><span class=\"odb-underline-red"
|
783 |
"\">CHECKED</span> TABLES <span class=\"odb-underline-red\">WON'T</span> BE "
|
784 |
"OPTIMIZED!</span>"
|
785 |
msgstr ""
|
787 |
"\">MARKIERTE</span> TABELLEN WERDEN <span class=\"odb-underline-red\">NICHT</"
|
788 |
"span> OPTIMIERT!</span>"
|
789 |
|
790 |
+
#: includes/settings-page.php:451
|
791 |
msgid "check all tables"
|
792 |
msgstr "alle Tabellen markieren"
|
793 |
|
794 |
+
#: includes/settings-page.php:453
|
795 |
msgid "uncheck all tables"
|
796 |
msgstr "alle Markierungen entfernen"
|
797 |
|
798 |
+
#: includes/settings-page.php:455
|
799 |
msgid "check all NON-WordPress tables"
|
800 |
msgstr "alle NICHT-WordPress-Tabellen markieren"
|
801 |
|
802 |
+
#: rvg-optimize-database.php:436 rvg-optimize-database.php:437
|
803 |
+
#: rvg-optimize-database.php:451 rvg-optimize-database.php:452
|
804 |
+
#: rvg-optimize-database.php:492 rvg-optimize-database.php:493
|
805 |
+
#: rvg-optimize-database.php:510 rvg-optimize-database.php:511
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
806 |
msgid "Optimize Database"
|
807 |
msgstr "Datenbank optimieren"
|
808 |
|
809 |
+
#: rvg-optimize-database.php:481
|
810 |
msgid "Optimize DB (1 click)"
|
811 |
msgstr "DB optimieren (1 Klick)"
|
812 |
|
813 |
+
#: rvg-optimize-database.php:629
|
814 |
+
#, fuzzy
|
815 |
+
#| msgid "Optimize Database after Deleting Revisions LOG FILE HAS BEEN DELETED"
|
816 |
+
msgid "Optimize Database after Deleting Revisions LOGS HAVE BEEN CLEARED"
|
817 |
+
msgstr ""
|
818 |
+
"Optimierung der Datenbank nach dem Löschen von Revisionen LOGS HAVE BEEN "
|
819 |
+
"CLEARED"
|
820 |
+
|
821 |
+
#: rvg-optimize-database.php:672
|
822 |
+
msgid "CLICK 'Start Optimization' TO ACTUALLY DELETE THE FOUND ITEMS"
|
823 |
+
msgstr ""
|
824 |
+
"KLICKEN Sie ' Optimierung starten ' um die GEFUNDENEN EINTRÄGE JETZT ZU "
|
825 |
+
"LÖSCHEN"
|
826 |
+
|
827 |
+
#: rvg-optimize-database.php:673
|
828 |
+
msgid "Cancel"
|
829 |
+
msgstr "Abbrechen"
|
830 |
+
|
831 |
+
#: rvg-optimize-database.php:677
|
832 |
+
msgid "Analysis Done!"
|
833 |
+
msgstr "Analyse abgeschlossen!"
|
834 |
+
|
835 |
+
msgid "NUMBER OF oEmbed RECORDS"
|
836 |
+
msgstr "Anzahl der oEmbed EINTRÄGE"
|
837 |
+
|
838 |
+
msgid "PLEASE DONATE!"
|
839 |
+
msgstr "Bitte Unterstützen Sie uns!"
|
840 |
+
|
841 |
+
msgid "POSTS only"
|
842 |
+
msgstr "Nur BEITRÄGE"
|
843 |
+
|
844 |
+
msgid "PAGES only"
|
845 |
+
msgstr "Nur SEITEN"
|
846 |
+
|
847 |
+
msgid "POSTS and PAGES"
|
848 |
+
msgstr "BEITRÄGE und SEITEN"
|
849 |
+
|
850 |
+
msgid "You have to enter the maximum number of revisions"
|
851 |
+
msgstr "Sie müssen die maximale Anzahl von Revisionen eingeben"
|
852 |
+
|
853 |
+
msgid "OR"
|
854 |
+
msgstr "ODER"
|
855 |
+
|
856 |
+
msgid "OPTIMIZING DATABASE TABLES"
|
857 |
+
msgstr "DATENBANK TABELLEN OPTIMIEREN"
|
858 |
+
|
859 |
+
msgid "<strong>TABLE OPTIMIZED</strong>"
|
860 |
+
msgstr "<strong>TABEL GEOPTIMALISEERD</strong>"
|
861 |
+
|
862 |
+
msgid "TABLE OPTIMIZED"
|
863 |
+
msgstr "TABEL GEOPTIMALISEERD"
|
864 |
+
|
865 |
+
msgid "TABLE OPTIMIZED!"
|
866 |
+
msgstr "TABEL GEOPTIMALISEERD!"
|
867 |
+
|
868 |
+
msgid ""
|
869 |
+
"<strong>WP Admin Panel</strong> » <strong>Tools</strong> » "
|
870 |
+
"<strong>Optimize Database</strong>. Then click the '<strong>Start "
|
871 |
+
"Optimization</strong>'-button. Et voila!"
|
872 |
msgstr ""
|
873 |
+
"<strong>WP Admin Panel</strong> » <strong>Werkzeuge</strong> » "
|
874 |
+
"<strong>Datenbank Optimieren</strong>. Klicken Sie auf die Schaltfläche "
|
875 |
+
"\"<strong>Optimierung Starten</strong>\". Et voila!"
|
876 |
+
|
877 |
+
msgid "Note: if you use the Scheduler the Optimization will run automatically!"
|
878 |
+
msgstr ""
|
879 |
+
"Hinweis: Wenn Sie den Zeitplan verwenden, läuft die Optimierung automatisch!"
|
880 |
+
|
881 |
+
# @ rvg-optimize-database
|
882 |
+
msgid "Hello world!"
|
883 |
+
msgstr "Hallo Welt!"
|
884 |
+
|
885 |
+
#, fuzzy
|
886 |
+
#~| msgid "NUMBER OF POSTMETA ORPHANS DELETED"
|
887 |
+
#~ msgid "NUMBER OF oEmbed RECORDS DELETED"
|
888 |
+
#~ msgstr "Anzahl gelöschter verwaister Einträge in postmeta"
|
889 |
+
|
890 |
+
#, fuzzy
|
891 |
+
#~| msgid "No UNUSED TAGS found to delete"
|
892 |
+
#~ msgid "No oEmbed records found to delete"
|
893 |
+
#~ msgstr "keine unbenutzten Tags zum Löschen gefunden"
|
894 |
+
|
895 |
+
#~ msgid "NUMBER OF UNUSED TAGS DELETED"
|
896 |
+
#~ msgstr "gelöschte unbenutzte Tags"
|
897 |
+
|
898 |
+
#~ msgid "Delete Log File"
|
899 |
+
#~ msgstr "Log löschen"
|
900 |
+
|
901 |
+
#~ msgid "A WordPress Plugin by"
|
902 |
+
#~ msgstr "Ein WordPress Plugin von"
|
903 |
+
|
904 |
+
#~ msgid "The Netherlands"
|
905 |
+
#~ msgstr "Niederlande"
|
906 |
+
|
907 |
+
#~ msgid "time"
|
908 |
+
#~ msgstr "Zeit"
|
909 |
+
|
910 |
+
#~ msgid "current server time"
|
911 |
+
#~ msgstr "Aktuelle Serverzeit"
|
912 |
+
|
913 |
+
#, fuzzy
|
914 |
+
#~| msgid "total number of revisions deleted"
|
915 |
+
#~ msgid "Maximum number of revisions should be a number"
|
916 |
+
#~ msgstr "insgesamt gelöschte Revisionen"
|
917 |
+
|
918 |
+
#~ msgid ""
|
919 |
+
#~ "EXCLUDE DATABASE TABLES FROM OPTIMIZATION: <span class=\"odb-underline-red"
|
920 |
+
#~ "\">CHECKED</span> TABLES <span class=\"odb-underline-red\">WON'T</span> "
|
921 |
+
#~ "BE OPTIMIZED!</span>"
|
922 |
+
#~ msgstr ""
|
923 |
+
#~ "TABELLEN VON DER OPTIMIERUNG AUSSCHLIESSEN: <span class=\"odb-underline-"
|
924 |
+
#~ "red\">MARKIERTE</span> TABELLEN WERDEN <span class=\"odb-underline-red"
|
925 |
+
#~ "\">NICHT</span> OPTIMIERT!</span>"
|
926 |
+
|
927 |
+
#~ msgid "(change will be visible after loading the next page)"
|
928 |
+
#~ msgstr ""
|
929 |
+
#~ "(Änderungen werden sichtbar, nachdem die nächste Seite geladen wurde)"
|
930 |
+
|
931 |
+
#, fuzzy
|
932 |
+
#~| msgid ""
|
933 |
+
#~| "A popular 'one-click' plugin to clean and optimize your WordPress "
|
934 |
+
#~| "database."
|
935 |
+
#~ msgid ""
|
936 |
+
#~ "A popular one-click plugin to clean and optimize your WordPress database."
|
937 |
+
#~ msgstr ""
|
938 |
+
#~ "Eine populäre „Ein-Klick“-Erweiterung, um Ihre WordPress-Datenbank zu "
|
939 |
+
#~ "reinigen und zu optimieren."
|
940 |
+
|
941 |
+
#~ msgid ""
|
942 |
+
#~ "Maximum number of - most recent - revisions<br />to keep per post / page"
|
943 |
+
#~ msgstr "Maximal gespeicherte Anzahl<br />Revisionen pro Beitrag / Seite"
|
944 |
|
945 |
#~ msgid ""
|
946 |
#~ "Click <a href=\"tools.php?page=rvg-optimize-db.php\" class=\"odb-bold"
|
954 |
#~ "ist ein 1-Klick Plugin zum Bereinigen und Optimieren der WordPress "
|
955 |
#~ "Datenbank"
|
956 |
|
|
|
|
|
|
|
|
|
957 |
#~ msgid "Optimize your WordPress Database"
|
958 |
#~ msgstr "WordPress Datenbank optimieren"
|
959 |
|
968 |
|
969 |
#~ msgid "Download URL:"
|
970 |
#~ msgstr "Download URL:"
|
971 |
+
|
972 |
+
#, fuzzy
|
973 |
+
#~| msgid "Delete trashed items"
|
974 |
+
#~ msgid "Delete all trashed items"
|
975 |
+
#~ msgstr "Papierkorb leeren"
|
976 |
+
|
977 |
+
#, fuzzy
|
978 |
+
#~| msgid "Delete spammed items"
|
979 |
+
#~ msgid "Delete all spammed items"
|
980 |
+
#~ msgstr "Spam löschen"
|
981 |
+
|
982 |
+
#, fuzzy
|
983 |
+
#~| msgid "Optimize Database after Deleting Revisions"
|
984 |
+
#~ msgid "Using Optimize Database after Deleting Revisions"
|
985 |
+
#~ msgstr "Datenbank bereinigen und optimieren"
|
986 |
+
|
987 |
+
#, fuzzy
|
988 |
+
#~| msgid "Optimize Database after Deleting Revisions"
|
989 |
+
#~ msgid "Optimize Database after Deleting Revisions - Settings"
|
990 |
+
#~ msgstr "Datenbank bereinigen und optimieren"
|
991 |
+
|
992 |
+
#, fuzzy
|
993 |
+
#~| msgid "Start Optimization"
|
994 |
+
#~ msgid "Starting Optimization"
|
995 |
+
#~ msgstr "Optimierung starten"
|
996 |
+
|
997 |
+
#, fuzzy
|
998 |
+
#~| msgid "DELETED REVISIONS"
|
999 |
+
#~ msgid "DELETING REVISIONS"
|
1000 |
+
#~ msgstr "GELÖSCHTE REVISIONEN"
|
1001 |
+
|
1002 |
+
#, fuzzy
|
1003 |
+
#~| msgid "DELETED TRASHED ITEMS"
|
1004 |
+
#~ msgid "DELETING TRASHED ITEMS"
|
1005 |
+
#~ msgstr "Aus dem Papierkorb gelöscht"
|
1006 |
+
|
1007 |
+
#, fuzzy
|
1008 |
+
#~| msgid "DELETEED SPAMMED ITEMS"
|
1009 |
+
#~ msgid "DELETING SPAMMED ITEMS"
|
1010 |
+
#~ msgstr "Gelöschte Spambeiträge"
|
1011 |
+
|
1012 |
+
#, fuzzy
|
1013 |
+
#~| msgid "DONE!"
|
1014 |
+
#~ msgid "DONE"
|
1015 |
+
#~ msgstr "FERTIG!"
|
1016 |
+
|
1017 |
+
#, fuzzy
|
1018 |
+
#~| msgid "Optimize Database"
|
1019 |
+
#~ msgid "Optimize DB Options"
|
1020 |
+
#~ msgstr "Datenbank optimieren"
|
1021 |
+
|
1022 |
+
#, fuzzy
|
1023 |
+
#~| msgid "Optimize Database after Deleting Revisions SETTINGS UPDATED"
|
1024 |
+
#~ msgid "Optimize Database after Deleting Revisions OPTIONS UPDATED"
|
1025 |
+
#~ msgstr "Einstellungen aktualisiert"
|
1026 |
+
|
1027 |
+
#, fuzzy
|
1028 |
+
#~| msgid ""
|
1029 |
+
#~| "Click <a href=\"tools.php?page=rvg-optimize-db.php\" class=\"odb-bold"
|
1030 |
+
#~| "\">HERE</a> to run the optimization"
|
1031 |
+
#~ msgid ""
|
1032 |
+
#~ "Click <a href=\"tools.php?page=rvg-optimize-db.php\" style=\"font-weight:"
|
1033 |
+
#~ "bold\">HERE</a> to run the optimization"
|
1034 |
+
#~ msgstr ""
|
1035 |
+
#~ "<a href=\"tools.php?page=rvg-optimize-db.php\" class=\"odb-bold\">HIER</"
|
1036 |
+
#~ "a> klicken, um die Optimierung zu starten"
|
1037 |
+
|
1038 |
+
#, fuzzy
|
1039 |
+
#~| msgid "Start Optimization"
|
1040 |
+
#~ msgid "To start the optimization:"
|
1041 |
+
#~ msgstr "Optimierung starten"
|
1042 |
+
|
1043 |
+
#, fuzzy
|
1044 |
+
#~| msgid "Optimize Database after Deleting Revisions"
|
1045 |
+
#~ msgid "Optimize Database after Deleting Revisions - Options"
|
1046 |
+
#~ msgstr "Datenbank bereinigen und optimieren"
|
1047 |
+
|
1048 |
+
#, fuzzy
|
1049 |
+
#~| msgid ""
|
1050 |
+
#~| "EXCLUDE DATABASE TABLES FROM OPTIMIZATION: <span class=\"odb-underline-"
|
1051 |
+
#~| "red\">CHECKED</span> TABLES <span class=\"odb-underline-red\">WON'T</"
|
1052 |
+
#~| "span> BE OPTIMIZED!</span>"
|
1053 |
+
#~ msgid ""
|
1054 |
+
#~ "EXCLUDE DATABASE TABLES FROM OPTIMIZATION: <span style=\"text-decoration:"
|
1055 |
+
#~ "underline;color:#F00;\">CHECKED</span> TABLES <span style=\"text-"
|
1056 |
+
#~ "decoration:underline;color:#F00;\">WON'T</span> BE OPTIMIZED!</span>"
|
1057 |
+
#~ msgstr ""
|
1058 |
+
#~ "TABELLEN VON DER OPTIMIERUNG AUSSCHLIESSEN: <span class=\"odb-underline-"
|
1059 |
+
#~ "red\">MARKIERTE</span> TABELLEN WERDEN <span class=\"odb-underline-red"
|
1060 |
+
#~ "\">NICHT</span> OPTIMIERT!</span>"
|
1061 |
+
|
1062 |
+
#, fuzzy
|
1063 |
+
#~| msgid "Save Settings"
|
1064 |
+
#~ msgid "Save Options"
|
1065 |
+
#~ msgstr "Einstellungen speichern"
|
1066 |
+
|
1067 |
+
#, fuzzy
|
1068 |
+
#~| msgid "Current settings"
|
1069 |
+
#~ msgid "Current options"
|
1070 |
+
#~ msgstr "Aktuelle Einstellungen"
|
1071 |
+
|
1072 |
+
#, fuzzy
|
1073 |
+
#~| msgid "Change Settings"
|
1074 |
+
#~ msgid "Change Options"
|
1075 |
+
#~ msgstr "Einstellungen ändern"
|
readme.txt
CHANGED
@@ -10,8 +10,8 @@ Contributors: cageehv
|
|
10 |
Requires at least: 2.8
|
11 |
Requires PHP: 5.0
|
12 |
Tested up to: 5.0
|
13 |
-
Stable tag: 4.7.
|
14 |
-
Version: 4.7.
|
15 |
License: GPLv2 or later
|
16 |
|
17 |
== Description ==
|
@@ -70,7 +70,7 @@ Then, start the .php file from your crontab!<br>
|
|
70 |
* Dutch [nl_NL] - translated by Rolf van Gelder, CAGE Web Design - http://cagewebdev.com
|
71 |
* English [en_US] - translated by Rolf van Gelder, CAGE Web Design - http://cagewebdev.com
|
72 |
* French [fr_FR] - translated by Guillaume Blet - http://www.mycinetheque.fr
|
73 |
-
* German [de_DE] - translated by
|
74 |
* Indonesian [id_ID] - translated by ChameleonJohn.com
|
75 |
* Italian [it_IT] - translated by Fabio Marzocca
|
76 |
* Persian [fa_IR] - translated by Milad Mordi, http://seodaramal.ir
|
@@ -111,6 +111,11 @@ http://cagewebdev.com/wordpress-plugins/
|
|
111 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
|
112 |
|
113 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
114 |
= 4.7.2 [11/12/2018] =
|
115 |
* BUG FIX: Fixed a MySQL query
|
116 |
|
10 |
Requires at least: 2.8
|
11 |
Requires PHP: 5.0
|
12 |
Tested up to: 5.0
|
13 |
+
Stable tag: 4.7.3
|
14 |
+
Version: 4.7.3
|
15 |
License: GPLv2 or later
|
16 |
|
17 |
== Description ==
|
70 |
* Dutch [nl_NL] - translated by Rolf van Gelder, CAGE Web Design - http://cagewebdev.com
|
71 |
* English [en_US] - translated by Rolf van Gelder, CAGE Web Design - http://cagewebdev.com
|
72 |
* French [fr_FR] - translated by Guillaume Blet - http://www.mycinetheque.fr
|
73 |
+
* German [de_DE] - translated by Kolja Spyra
|
74 |
* Indonesian [id_ID] - translated by ChameleonJohn.com
|
75 |
* Italian [it_IT] - translated by Fabio Marzocca
|
76 |
* Persian [fa_IR] - translated by Milad Mordi, http://seodaramal.ir
|
111 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
|
112 |
|
113 |
== Changelog ==
|
114 |
+
= 4.7.3 [12/12/2018] =
|
115 |
+
* CHANGE: The deletion of transients has been fully rewritten and is many times faster now!
|
116 |
+
* CHANGE: Increased the time_limit
|
117 |
+
* CHANGE: German translations have been updated
|
118 |
+
|
119 |
= 4.7.2 [11/12/2018] =
|
120 |
* BUG FIX: Fixed a MySQL query
|
121 |
|
rvg-optimize-database.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Optimize Database after Deleting Revisions
|
4 |
-
* @version 4.7.
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Optimize Database after Deleting Revisions
|
@@ -10,7 +10,7 @@ Description: Optimizes the Wordpress Database after Cleaning it out
|
|
10 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
11 |
Author URI: http://cagewebdev.com
|
12 |
Network: True
|
13 |
-
Version: 4.7.
|
14 |
*/
|
15 |
|
16 |
/********************************************************************************************
|
@@ -18,14 +18,18 @@ Version: 4.7.2
|
|
18 |
* MAIN CLASS
|
19 |
*
|
20 |
********************************************************************************************/
|
|
|
|
|
|
|
|
|
21 |
// CREATE INSTANCE
|
22 |
global $odb_class;
|
23 |
$odb_class = new OptimizeDatabase();
|
24 |
|
25 |
class OptimizeDatabase {
|
26 |
// VERSION
|
27 |
-
var $odb_version = '4.7.
|
28 |
-
var $odb_release_date = '
|
29 |
|
30 |
// PLUGIN OPTIONS
|
31 |
var $odb_rvg_options = array();
|
@@ -666,7 +670,8 @@ class OptimizeDatabase {
|
|
666 |
$this->odb_cleaner_obj->odb_savings($scheduler);
|
667 |
}
|
668 |
// SHOW 'DONE' PARAGRAPH
|
669 |
-
if (!$scheduler && !$analyze)
|
|
|
670 |
|
671 |
if ($analyze) {
|
672 |
$msg1 = __("CLICK 'Start Optimization' TO ACTUALLY DELETE THE FOUND ITEMS", $this->odb_txt_domain);
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Optimize Database after Deleting Revisions
|
4 |
+
* @version 4.7.3
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Optimize Database after Deleting Revisions
|
10 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
11 |
Author URI: http://cagewebdev.com
|
12 |
Network: True
|
13 |
+
Version: 4.7.3
|
14 |
*/
|
15 |
|
16 |
/********************************************************************************************
|
18 |
* MAIN CLASS
|
19 |
*
|
20 |
********************************************************************************************/
|
21 |
+
|
22 |
+
// INCREASE THE TIME LIMIT v4.7.3
|
23 |
+
set_time_limit ( 4 * 3600 );
|
24 |
+
|
25 |
// CREATE INSTANCE
|
26 |
global $odb_class;
|
27 |
$odb_class = new OptimizeDatabase();
|
28 |
|
29 |
class OptimizeDatabase {
|
30 |
// VERSION
|
31 |
+
var $odb_version = '4.7.3';
|
32 |
+
var $odb_release_date = '12/12/2018';
|
33 |
|
34 |
// PLUGIN OPTIONS
|
35 |
var $odb_rvg_options = array();
|
670 |
$this->odb_cleaner_obj->odb_savings($scheduler);
|
671 |
}
|
672 |
// SHOW 'DONE' PARAGRAPH
|
673 |
+
if (!$scheduler && !$analyze)
|
674 |
+
$this->odb_cleaner_obj->odb_done($analyze);
|
675 |
|
676 |
if ($analyze) {
|
677 |
$msg1 = __("CLICK 'Start Optimization' TO ACTUALLY DELETE THE FOUND ITEMS", $this->odb_txt_domain);
|