{"id":926,"date":"2014-09-12T16:23:18","date_gmt":"2014-09-12T20:23:18","guid":{"rendered":"http:\/\/blog.uvm.edu\/ctl-projects\/?p=921"},"modified":"2014-09-12T16:23:18","modified_gmt":"2014-09-12T20:23:18","slug":"gund-publications-update","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/waw\/2014\/09\/12\/gund-publications-update\/","title":{"rendered":"Gund Publications Update"},"content":{"rendered":"<p><span style=\"color: #000000\">On Aug 14, 2014, at 9:10 PM, Taylor Ricketts wrote:<\/span><br style=\"color: #000000\" \/><br style=\"color: #000000\" \/><\/p>\n<blockquote><p><em>We&#8217;ve gotten a lot of compliments on the Gund publications page. \u00a0The quick links are a hit.<\/em><\/p>\n<p><em>But we&#8217;ve also gotten a lot of comments about how slow it is to load. \u00a0The full default list is especially worrying, since it&#8217;s the first look people get, and they frequently give up and navigate away before it even loads. \u00a0But the searches are slow as well.<\/em><\/p>\n<p><em>Is there some way to speed it up? \u00a0Optimize the searching somehow? \u00a0Or store static versions of the whole list and each of the 4 quick searches, so that they are fast to load (and get updated whenever I update the database?).<\/em><\/p><\/blockquote>\n<p>Sure. I added a caching system.\u00a0<span style=\"color: #000000\">There were a few little hiccups along the way, but all seems to be in order now. Caching all searches, so popular ones ought to move faster, too, as well as leave a record of what people are looking for. Cached files expire after 7 days, so next time you regenerate the database, you need only be patient before the cache regenerates all on its own. Yes, I could make a \u201cupdate cache\u201d button, but that just adds one more step to keep track of. I could try to add code to the import process, but that gets complicated since the import code and the website code and cache files live on two different servers. It would also add Gund specific code to what is otherwise a generic utility. Yes, every 7 days or so, someone or something will visit the page, kick off a cache refresh, and will have to wait 5-10 seconds for a response, but \u00a0I\u2019ll wager that the lucky button pressor more often than not will be a search robot and not a human.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Aug 14, 2014, at 9:10 PM, Taylor Ricketts wrote: We&#8217;ve gotten a lot of compliments on the Gund publications page. \u00a0The quick links are a hit. But we&#8217;ve also gotten a lot of comments about how slow it is &hellip; <a href=\"https:\/\/blog.uvm.edu\/waw\/2014\/09\/12\/gund-publications-update\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41826],"tags":[42758,152230,42762,647],"class_list":["post-926","post","type-post","status-publish","format-standard","hentry","category-wes","tag-boffins","tag-dspace-2","tag-faculty-projects","tag-php"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/comments?post=926"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/926\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/media?parent=926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/categories?post=926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/tags?post=926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}