{"id":3834,"date":"2005-01-04T20:52:11","date_gmt":"2005-01-04T12:52:11","guid":{"rendered":"http:\/\/belief.hazelcafe.com\/?474"},"modified":"2005-01-04T20:52:11","modified_gmt":"2005-01-04T12:52:11","slug":"operation-back-to-square-one","status":"publish","type":"post","link":"https:\/\/belief.hazelcafe.com\/?p=3834","title":{"rendered":"Operation Back-To-Square-One"},"content":{"rendered":"<p>Operation Back-To-Square-One-<br \/>Objective: <br \/>To revert back to the old way of querying the database for blogs.<br \/>Reasons:<br \/>(1) Generation of too many files makes maintanance hard and time consuming. For example, I used around 10 minutes to get rid of the 470 files generated by my blog.<\/p>\n<p>(2) Duplication of code. The overall template is the same throughout. With the generation of individual pages, I have used up quite a substantial amount of available server space. If my template file is 5kb, after page generation, each page will be around 10kb, given the fact that I crap alot for most entries. With database query, I only need a file, and the rest are just my way of retrieving things.<\/p>\n<p>(3) Easy Grouping. With querying instead of generating, I don&#039;t need to regenerate the pages when I make changes to the template or entries. I just need to refresh my page. It&#039;s a better and faster way to do things.<\/p>\n<p>Well, at least I get the parsing of keywords correct. That&#039;s my aim in the first place. Now, I think I can start on the long-lost Yahoo! News section&#8230;<\/p>\n<p>An update for today. Went running just now! Quite shiok. The temperature&#039;s cooling. A great night for a run. I had wanted to go running a few days back, but due to unforseen MSN chats and natural happenings (ie, rain), I have been forced to stay put. Ahh!!!<\/p>\n<p>Tomorrow&#039;s Wednesday&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Operation Back-To-Square-One-Objective: To revert back to the old way of querying the database for blogs.Reasons:(1) Generation of too many files makes maintanance hard and time consuming. For example, I used around 10 minutes to get rid of the 470 files &hellip; <a href=\"https:\/\/belief.hazelcafe.com\/?p=3834\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/3834"}],"collection":[{"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3834"}],"version-history":[{"count":0,"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/3834\/revisions"}],"wp:attachment":[{"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belief.hazelcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}