RT。是有点无聊,所以就找点事浪费一下时间。

  1. 添加Google 自定义搜索,代替站内搜索。
  2. 优化RSS Feed订阅,提高载入速度。
  3. 优化wp header.php,用静态Html代替php,减少php跟数据库查询,加速载入。

wordpress自带的站内搜索实在是太烂了,准确性低不说,文章多了以后速度也慢的要死。所以,最好的方法就是废了他,换个高效的,那就直接用最好的,让Google来给我搜。利用Google进行站内搜索有很多种方式,这里采用Google Coop,Google自定义搜索。参考使用Google自定义搜索引擎

RSS托管在feedsky上,无奈feedsky服务器的速度在学校实在不怎么地,每回sidebar都是加载半天,然后失败,-_-|||。。那就简单点,直接用文本URL解决。别说,这样看起来比一堆图片要好看的多了。

据说,减少php跟数据库查询可以加速网页载入速度,怎么说静态的也要比动态的省事,直接读取html文件就行了。wp的header.php文件里面php查询就相当多,就拿它下手,关于wp信息查询的固定的全部用静态信息代替,导航栏也全部用<li>解决,顺带把footer.php里面的一些也同样收拾了,然后试了一下,嗯,心理作用,确实快了,^o^。

不玩了,不好玩,收拾一下,准备一下课程设计,开学三个星期俩课程设计,不好弄啊。

PS:修改css让wordpress支持段首空两格,.postText p{text-indent:2em;},postText是DIV标签。

Tags: , ,

Related posts

Tags: ,,.
Home

No Comments Now!

Be the first to comment on this entry.

Leave a comment

Name(required)
Mail (required),(will not be published)
Website(recommended)

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs must be fully qualified (eg: http://hanghang.name),and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.