{"id":1693,"date":"2013-06-02T00:15:17","date_gmt":"2013-06-02T04:15:17","guid":{"rendered":"http:\/\/lucas-photo.com\/blog\/?p=1693"},"modified":"2013-06-02T00:32:52","modified_gmt":"2013-06-02T04:32:52","slug":"hey-that-doesnt-count","status":"publish","type":"post","link":"https:\/\/lucas-photo.com\/blog\/2013\/06\/02\/hey-that-doesnt-count\/","title":{"rendered":"Hey!  That doesn&#8217;t count!"},"content":{"rendered":"<p>Well I found and fixed a bug in the page counter system, where for reasons unclear the count would go as high as 9 then restart from 1.   I was starting to worry that no one was looking at the shots since the upgrade!<\/p>\n<p>A little-known &#8220;feature&#8221; in PHP&#8217;s mysql_result() function was the culprit&#8230; I reverted to a more &#8220;traditional&#8221; way of doing it and it&#8217;s working.  That also allowed (or forced) me to refactor my infrastructure again, so when I next have to make such sitewide changes it can be done much more efficiently.<\/p>\n<p>I also hacked the front page slideshow to force the random photo load.<\/p>\n<p>Even better news is just around the corner, I&#8217;m just waiting on final approval, but there&#8217;s a very nice update on the way, hopefully by tomorrow&#8230; stay tuned.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well I found and fixed a bug in the page counter system, where for reasons unclear the count would go as high as 9 then restart from 1. I was starting to worry that no one was looking at the shots since the upgrade! A little-known &#8220;feature&#8221; in PHP&#8217;s mysql_result() function was the culprit&#8230; I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4,6,7,8],"tags":[],"class_list":["post-1693","post","type-post","status-publish","format-standard","hentry","category-bodybuilding","category-individuals","category-modeling","category-ramblings","category-site-updates"],"_links":{"self":[{"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/posts\/1693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/comments?post=1693"}],"version-history":[{"count":0,"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/posts\/1693\/revisions"}],"wp:attachment":[{"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/media?parent=1693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/categories?post=1693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lucas-photo.com\/blog\/wp-json\/wp\/v2\/tags?post=1693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}