<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Malaiac Attack &#187; Coder un thème WordPress : bonnes pratiques &#8211; php</title> <atom:link href="http://www.malaiac.net/tag/php/feed" rel="self" type="application/rss+xml" /><link>http://www.malaiac.net</link> <description>SEO, webdev</description> <lastBuildDate>Wed, 30 Nov 2011 08:20:44 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>Coder un thème WordPress : bonnes pratiques</title><link>http://www.malaiac.net/533-coder-theme-wordpress.html</link> <comments>http://www.malaiac.net/533-coder-theme-wordpress.html#comments</comments> <pubDate>Mon, 15 Jun 2009 09:26:45 +0000</pubDate> <dc:creator>Malaiac</dc:creator> <category><![CDATA[technique]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[cache]]></category> <category><![CDATA[css]]></category> <category><![CDATA[http]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[optimisation]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[php]]></category> <category><![CDATA[référencement]]></category> <guid
isPermaLink="false">http://www.malaiac.net/?p=533</guid> <description><![CDATA[Un thème WordPress bien codé peut alléger la charge du serveur et augmenter la rapidité de chargement des pages.
Par ailleurs, vous gagnerez en facilité de maintenance en rationalisant l’organisation de votre thème.
Restez léger, codez proprement, utilisez le cache WordPress, allégez votre header.php, utilisez un sous domaine en CDN.
Exemple de fichier functions.php.]]></description> <wfw:commentRss>http://www.malaiac.net/533-coder-theme-wordpress.html/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Optimisation WordPress</title><link>http://www.malaiac.net/465-optimisation-wordpress.html</link> <comments>http://www.malaiac.net/465-optimisation-wordpress.html#comments</comments> <pubDate>Wed, 10 Jun 2009 16:31:33 +0000</pubDate> <dc:creator>Malaiac</dc:creator> <category><![CDATA[performance]]></category> <category><![CDATA[scripts]]></category> <category><![CDATA[technique]]></category> <category><![CDATA[tools]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[crawl]]></category> <category><![CDATA[google]]></category> <category><![CDATA[http]]></category> <category><![CDATA[optimisation]]></category> <category><![CDATA[php]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[référencement]]></category> <category><![CDATA[rss]]></category> <category><![CDATA[vitesse]]></category> <category><![CDATA[web]]></category> <guid
isPermaLink="false">http://www.malaiac.net/?p=465</guid> <description><![CDATA[Optimisation des performances de WordPress :
Sur Apache, en ajoutant des headers Expire, en compressant le contenu, en ajoutant des Etags, et en utilisant des sous domaines
Du coté MySQL, en activant le cache et en loggant les requêtes longues.
Sur WordPress, en faisant attention aux plugins, en activant le cache avec WP Super Cache, et en rassemblant les fichiers JS et CSS avec PHP Speedy.]]></description> <wfw:commentRss>http://www.malaiac.net/465-optimisation-wordpress.html/feed</wfw:commentRss> <slash:comments>18</slash:comments> </item> <item><title>gethostbyname : à oublier, préférez dig</title><link>http://www.malaiac.net/408-gethostbyname-a-oublier-preferez-dig.html</link> <comments>http://www.malaiac.net/408-gethostbyname-a-oublier-preferez-dig.html#comments</comments> <pubDate>Sun, 15 Mar 2009 20:39:49 +0000</pubDate> <dc:creator>Malaiac</dc:creator> <category><![CDATA[scripts]]></category> <category><![CDATA[crawl]]></category> <category><![CDATA[gethostbyname]]></category> <category><![CDATA[php]]></category> <guid
isPermaLink="false">http://www.malaiac.net/?p=408</guid> <description><![CDATA[gethostbyname sert à récupérer l&#8217;adresse IP d&#8217;un nom de domaine. L&#8217;intention est bonne, et la fonction suffit pour quelques interrogations. Mais si vous avez besoin de récupérer l&#8217;IP de plusieurs milliers de noms de domaines, oubliez tout de suite, préférez dig ! function gethost_fast($host) { // on lance dig, en demandant les champs A (ip) [...]]]></description> <wfw:commentRss>http://www.malaiac.net/408-gethostbyname-a-oublier-preferez-dig.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Une fonction magique pour développer avec WordPress</title><link>http://www.malaiac.net/289-fonction-magique-wordpress.html</link> <comments>http://www.malaiac.net/289-fonction-magique-wordpress.html#comments</comments> <pubDate>Thu, 25 Dec 2008 10:29:56 +0000</pubDate> <dc:creator>Malaiac</dc:creator> <category><![CDATA[tools]]></category> <category><![CDATA[php]]></category> <category><![CDATA[wordpress]]></category> <guid
isPermaLink="false">http://www.malaiac.net/?p=289</guid> <description><![CDATA[Voici la fonction à ajouter dans un plugin actif (ou dans votre functions.php de thème), pour permettre de débugger les filtres et actions WordPress : &#60;?php function all_actions() { global $debug; if($debug) echo "\nfilter = ".current_filter(); if(current_filter() != 'get_terms' // trop de données &#038;&#038; $debug) echo '&#60;pre&#62;'.print_r(func_get_args(),1).'&#60;/pre&#62;'; } add_action('all','all_actions'); &#62; Ensuite, il vous suffit, n&#8217;importe [...]]]></description> <wfw:commentRss>http://www.malaiac.net/289-fonction-magique-wordpress.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
