Limitare le revisioni degli articoli in WordPress
La versione 2.6 di WordPress introduce la possibilità di salvare una copia degli articoli ogni volta che vengono modificati. In questo modo, all’occorrenza, è possibile ripristinare per ciascun articolo una versione precedente.
E’ una funzionalità senza dubbio molto utile, che però va ad aumentare le dimensioni del database, dal momento che per ogni revisione viene inserita una nuova riga nella tabella wp_posts
.
Per evitare che il database diventi troppo pesante, è possibile disabilitare questa funzionalità, oppure limitare il numero di revisioni per ogni articolo. E’ sufficiente aggiungere nel file wp-config.php
queste righe:
[PHP]
// imposta massimo 3 revisioni per articolo
define (‘WP_POST_REVISIONS’, 3);
// imposta il salvataggio automatico ogni ora
define(‘AUTOSAVE_INTERVAL’, 600);
[/PHP]
Tags: articoli Database revisioni tips WordPress
Pubblicato giovedì 30 Ottobre 2008 in Hack WordPress. Ultimo aggiornamento: lunedì 29 Novembre 2010.
Letture: 7260.
Link correlati
10+ useful SQL queries to clean up your WordPress database
In this article, I’m going to show you 10+ SQL queries to clean up your WordPress database.
40 Free and Premium Creative WordPress Themes
Whether you are an artist, graphic designer, photographer or a magazine or newspaper owner, you would require some real catchy and awesome creative WordPress themes to display your work.
Add From Server
“Add From Server” is a quick plugin which allows you to import media & files into the WordPress uploads manager from the Webservers file
CSS3 Animated Media Queries
In this article we are going to look at media queries, have a code snippet you can use to start your media queries and show how you can combine CSS transition with the media queries to show an animated change to your elements.
FeatPlug
Featplug is a standalone script / wordpress plugin that can mine your WordPress posts or any other data and look for images suiting a given dimension and generates ‘featured’ section for your site using the found items.
Five Tools to Increase the RSS Subscribers for your WordPress Blog
5 plugin per WordPress per aumentare gli iscritti al feed RSS.
How to display your latest Google+ update on your WordPress blog
How you can easily display your latest Google+ update on your WordPress blog.
JavaScript to Footer
WordPress default behavior is to load JavaScript in the <head> page.
This plugin will move all javascript code to the footer if the plugins have declared JavaScript properly.
MTR Podcast Recorder
MTR Podcast Recorder offers real-time recording (via a Java applet) that is saved into MP3 format on the same server where WordPress is installed.
Page Links To
This plugin allows you to make a WordPress page or post link to a URL of your choosing, instead of its WordPress page or post URL. It also will redirect people who go to the old (or “normal”) URL to the new one you’ve chosen.
Search Everything
Plugin che permette di estendere la ricerca di default di WordPress anche alle Pagine, alle Categorie e ai Tag, ai Commenti (con possibilità di escludere o includere quelli approvati), alle Bozze, gli estratti e gli allegati e ai Campi personalizzati. E’ possibile inoltre, escludere dalla ricerca gli Articoli e le Categorie, a scelta.
Speed up your blog by caching custom queries
An useful snippet to cache custom queries in WordPress. Don’t forget to update the query on line 5!
Top WordPress Responsive Themes
As WordPress is the most popular and secure platform today, it is obvious that there is plethora of great responsive WordPress themes out there. Here are some of the best available.
WP Equal Columns
Plugin per WordPress che rende uguale l’altezza delle colonne del tema usato, ad esempio la barra laterale e la colonna principale.
WP FancyZoom WordPress Plugin
A simple way to add the FancyZoom image overlay script to your blog. In short, FancyZoom is a nice, modern way of making popup images.