Home › Forum › Problemi Vari con WP › Sito lentissimo
-
AutorePost
-
-
10 Agosto 2011 alle 15:49 #18836TecnologyPartecipante
Ho un problema con un sito in WordPress. Premetto che abbiamo installato l’ultimissima versione e che tutti i plugin sono aggiornati.
Il sito, per motivi che non sto qui a spiegarvi, ha 2 installazioni di WP. Una con pochissime pagine, la seconda con quasi 2.000.
Quella con quasi 2.000 è lentissima, parecchi secondi prima che carichi la pagina. Quella con poche pagine è molto più veloce.
Una nota: le 2.000 pagine sono tutte pagine statiche, nessun articolo.
Si tratta di pagine create automaticamente con uno script che altro non ha fatto che utilizzare le funzioni di WP. In pratica come se a mano fossero state inserite le pagine una per una.
Non è un problema di template in quanto abbiamo messo quello standard ed i tempi di risposta non cambiano.
Non è un problema di plugin in quanto sono pochissimi.
Abbiamo provato a installare WP super cache ma non cambia nulla.
L’abbiamo rimosso ed installato un plugin per la sola compressione delle pagine, non cambia nulla…
Abbiamo ottimizzato il DB, come ripostato qui
www . marinomichele . it/2010/01/06/ottimizzare-il-database-di-wordpress/
Non sappiamo più che pesci pigliare…
Qualcuno ha qualche suggerimento?
-
10 Agosto 2011 alle 15:56 #87411wollyAmministratore del forum
mancano decisamente i dati fondamentali per pensare a dei motivi:
1) pagine viste
2) tipo di server
3) il db mysql come è configurato? è in localhost?
senza queste informazioni l’unica risposta plausibile è che il server è sottodimensionato rispetto alle vostre esigenze.
-
10 Agosto 2011 alle 16:00 #87413TecnologyPartecipante
Pagine viste: 0 (abbiamo messo online oggi)
Tipo di server: server Linux (servono altri dati?)
Il DB è in localhost. Addirittura, per vedere se cambiava qualcosa, è stato assegnato un DB solo per questa installazione di WP, nulla di diverso…
-
10 Agosto 2011 alle 16:00 #87414wollyAmministratore del forum
PS e un link al sito.
-
10 Agosto 2011 alle 16:10 #87415TecnologyPartecipante
Preferirei se possibile non postare il nome dominio…
Anche perché non è un problema di template o immagini perché è lento in egual misura con il template standard e carica in maniera lentissima anche pagine senza immagini.
-
10 Agosto 2011 alle 16:43 #87417wollyAmministratore del forum
senza link al sito non possiamo vedere nulla.
Non basta linux, tipo di server shared o server dedicato, provider, ram disponibile processore etc.etc.
-
10 Agosto 2011 alle 16:47 #87419wollyAmministratore del forum
in ogni caso, visto che siete a 0 visite è al 99,99% un problema di server assolutamente non adatto a wordpress.
-
10 Agosto 2011 alle 16:52 #87422TecnologyPartecipante
Purtroppo è quello che immaginavo…
Mi confermi che WP con 2.000 pagine dovrebbe girare bene senza nemmeno plugin di ottimizzazione come ad esempio wp super cache?
-
10 Agosto 2011 alle 16:53 #87423wollyAmministratore del forum
a visite 0 dovrebbe girare da qualsiasi parte, non sono certo il numero di pagine che influenzano visto che sono nel db e nessuno le richiede.
-
10 Agosto 2011 alle 18:40 #87430AndreamkPartecipante
Comunque conviene fare la prova di disattivare tutti i plugin e verificare se migliora.
Il fatto che siano pochissimi vuol dire poco perchè ne basta uno fatto male che ti rallenta tutto.
Andrea
-
12 Agosto 2011 alle 8:01 #87480TecnologyPartecipante
Abbiamo cancellato tutto il sito, rimesso su tutto, installati i plugin. Tutto funziona correttamente.
Abbiamo iniziano a far girare il nostro script che utilizza la funzione wp_insert_post() per inserire pagine statiche in maniera automatica.
Dopo le prime 150 pagine circa non abbiamo riscontrato rallentamenti. Adesso che ne abbiamo caricate circa 700 sta rallentando, non ai livelli dell’altra volta ma ci mette 2-3 secondi a restituire una pagina.
Sono sicuro però che quando arriveremo alle circa 2.000 pagine che dobbiamo caricare sarà tutto lento come prima…
Qualcuno sa darmi una dritta adesso che abbiamo appurato che il problema è dato dal caricamento automatico delle pagine?
-
12 Agosto 2011 alle 8:22 #87481TecnologyPartecipante
Posto direttamente anche il codice
foreach ($servizi as $val_servizi) {
set_time_limit(25);
$page_servizi = array(
'post_title' => sprintf($val_servizi[3], "", ""), // il post_title è l'h1, il title seo è a parte per colpa di SEO pack
'post_content' => $val_servizi[4],
'post_status' => 'publish',
'post_author' => 1,
'post_name' => $val_servizi[1],
'post_type' => 'page'//,
//'post_parent' => $id_page_home
);
$id_page_servizi = wp_insert_post( $page_servizi );
if($id_page_servizi != 0){
add_post_meta($id_page_servizi, '_aioseop_title', sprintf($val_servizi[2], "", "", ""));
} else {
echo "Errore nella creazione della pagina per il servizio ".$val_servizi[0];
}
-
12 Agosto 2011 alle 8:25 #87482AndreamkPartecipante
Qual’è la struttura dei permalink ?
-
12 Agosto 2011 alle 8:27 #87484wollyAmministratore del forum
Continui a non dare le informazioni sull’hosting.
In ogni caso il processo di importazione certamente rallenta il sito ma finito non dovrebbero esserci conseguenze di alcun tipo, a questo punto può essere che si appenda il processo.
-
12 Agosto 2011 alle 8:32 #87486TecnologyPartecipante
abbiamo cambiato l’hosting, MOLTO più performante. Altri siti presenti sullo stesso hosting (di un mio amico) hanno un tempo di risposta che assomiglia molto a quello in locale, perciò abbiamo escluso anche il problema dell’hosting.
Comunque anche il vecchio non era male, infatti ci è stato confermato che no si siamo nemmeno avvicinati a nessun tipo di limite.
-
12 Agosto 2011 alle 8:49 #87487wollyAmministratore del forum
Qualcuno sa darmi una dritta adesso che abbiamo appurato che il problema è dato dal caricamento automatico delle pagine?
A questo punto se sei sicuro di questo, e l’hosting è un turbo, lo script che state utilizzando è scritto male.
Noi abbiamo importato pochi giorni fa 82.000 tra post e articoli in una nuova installazione senza alcun problema, solo che in questo caso avevamo i dati dell’hosting e quindi abbiamo agito in base al tipo di hosting per realizzare lo script.
-
12 Agosto 2011 alle 8:54 #87488TecnologyPartecipante
Sono d’accordo che il problema è legato allo script. Resta da capire quale sia la causa del problema.
Sto attendendo il sistemista che ha accesso al server per capire se ci sono dei processi appesi come di dicevi sopra.
Se è cosଠin teoria basterà riavviare il server per ripristinare tutto.
-
12 Agosto 2011 alle 8:57 #87489wollyAmministratore del forum
no non basta riavviare il server, bisognerà modificare lo script in base alla configurazione del server in pratica non gli dovete fare creare tutte e le 2000 pagine in un colpo solo ma dovete farlo fare a step in base al tipo di hosting e la sua configurazione.
-
12 Agosto 2011 alle 9:17 #87490TecnologyPartecipante
Lo script fa già cosà¬, crea circa 150 pagine alla volta. Ogni volta finisce uno “step” ne avviamo un altro. Facciamo cosଠperché altrimenti andrebbe anche in time out.
Penso che, visto che le pagine sono state create e sono “a posto”.
Si tratti di risolvere il problema che le fa visualizzare cosଠlente, non credo che sarà necessario rifare tutto di nuovo (spero)
-
12 Agosto 2011 alle 10:45 #87499TecnologyPartecipante
Qual’è la struttura dei permalink ?
Cavolo, cambiata la struttura dei permalink è una scheggia!
Con la struttura personalizzata
/%category%/%postname%/
si inchioda.
Se attiviamo il debug del DB vediamo che fa un insert spaventoso.
Che suggerisci? Considera che sono solo pagine statiche, non c’è nemmeno un articolo
-
12 Agosto 2011 alle 12:45 #87505wollyAmministratore del forum
quella è una struttura personalizza sconsigliata.
http://www.andreapernici.com/qual-e-la-migliore-struttura-dei-permalink-wordpress/
-
12 Agosto 2011 alle 13:23 #87507TecnologyPartecipante
Cavolo!
Ti chiedo però una cosa: io ho cambiato la struttura personalizza in /%post_id%-%postname%/
e mi da delle prestazioni impressionanti.
Per le url mantengono ancora la categoria, sono infatti cosà¬:
sito/categoria/postname
credo sia dovuto al fatto che sono pagine e perciò quella che sembra una categoria in realtà è una pagina…
solo che alla fine della url mi fa vedere questo
…/postname/?phpMyAdmin=Bgyq4VxPFuZ…
Come faccio a togliere la parte finale della url con phpmyadmin?
-
12 Agosto 2011 alle 13:51 #87510wollyAmministratore del forum
le pagine non hanno categorie, non è che hai qualche plugin strano che crea la categorie per le pagine?
…/postname/?phpMyAdmin=Bgyq4VxPFuZ…
Questo è un paciugo che non deriva da WordPress.
-
12 Agosto 2011 alle 14:27 #87511TecnologyPartecipante
Come plugin ho
Akismet
All in one seo pack
cforms
Google Maps v3 Shortcode
HTML Javascript Adder
Twitter Facebook Social Share
Nulla che vada ad incidere sul rewrite delle pagine.
Però se io ho una pagina “prima-pagina” e poi creo “pagina-interna” che definisco figlia della prima, trovo normale che la url sia
sito/prima-pagina/pagina-interna
perciò anche se le pagine non hanno categoria, cosଠsi forma comunque una sorta di categoria nella url che non cambia nemmeno impostando
/%post_id%-%postname%/
Non riesco invece a capire da cosa derivi quel phpmyadmin nelle url
-
12 Agosto 2011 alle 14:31 #87512wollyAmministratore del forum
è normale se usi pagina/sottopagina che il permalink sia cosà¬.
Pe ril phpmyadmi devi vedere cosa scrivi con l’importatore, secondo me.
-
12 Agosto 2011 alle 15:59 #87516zhenyaPartecipante
..solo che alla fine della url mi fa vedere questo
…/postname/?phpMyAdmin=Bgyq4VxPFuZ..
Dalle mie parti, Russia, definiamo questi problemi con la dicitura: Soliti errori del dilettante.
-
12 Agosto 2011 alle 16:17 #87517TecnologyPartecipante
..solo che alla fine della url mi fa vedere questo
…/postname/?phpMyAdmin=Bgyq4VxPFuZ..
Dalle mie parti, Russia, definiamo questi problemi con la dicitura: Soliti errori del dilettante.
Dalle mie parti invece si dice che è meglio tacere invece che parlare a vanvera. (per non dirti altro…)
-
12 Agosto 2011 alle 18:15 #87525zhenyaPartecipante
Infatti taccio e non suggerisco alcuna soluzione, a questo punto trovatela visto che il problema è il tuo, non il mio.
-
13 Agosto 2011 alle 14:18 #87533TecnologyPartecipante
Infatti taccio e non suggerisco alcuna soluzione, a questo punto trovatela visto che il problema è il tuo, non il mio.
In questo forum ho trovato utenti molto intelligenti e cordiali che mi hanno dato una mano e che con l’occasione ringrazio di nuovo.
Poi sei arrivato tu e, invece di proporre soluzioni o dare suggerimenti, ti sei messo a fare del sarcasmo, cosa che è completamente fuori luogo.
La soluzione l’abbiamo già trovata e questo di sicuro non grazie a te.
-
15 Agosto 2011 alle 22:42 #87565HotWutPartecipante
senza dominio si vede poco.
Quante pagine ha wordpress non centra niente. ( ho un sito con buddypress con 100 online fissi piu’ di 4000 post pubblicati) va che una scheggia!!
Piuttosto che plug hai installato? che hosting hai? che DNS usi? Che versione di PHP hai installato sul server? che errore ti da?
potrebbe essere un problema di memoria causato da uno script che richiede troppo. ma dai pochi dati che ci hai fornito e’ difficile vedere.
-
17 Agosto 2011 alle 6:33 #87603visuraPartecipante
quella è una struttura personalizza sconsigliata.
http://www.andreapernici.com/qual-e-la-migliore-struttura-dei-permalink-wordpress/
Grazie dell’informazione, hai risolto anche un mio problema.
Non riuscivo infatti a capire il perché della lentezza del mio blog, ora vado immediatamente a modificare la struttura x vedere se cambia qualcosa.
Ancora grazie
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.