Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Options Table & Speed Suggestion (future development)


  #1  
Old Nov 9, 2009, 07:12 PM
fencepost's Avatar
fencepost
 
17 posts · Oct 2009
Schaumburg, IL
After reading the post Top 10 Most Common Coding Mistakes in WordPress Plugins the other day, and combined with some recent discussions of Atahualpa's speed, something jumped out at me. While the article is targeted at plugins, there's not that much distance between plugins and themes.

One of the gripes in the article is plugins that add many new rows to the options table; the suggested solution is to put only a small number of rows in and combine multiple items into a single row. I'm torn on the merits of that because it comes down to the question of which is better: reading multiple rows or decoding multiple values out of a single result in code.

However, the thing that struck me is that with some of the complaints about Atahaulpa's speed it might make sense to generate most of the "static" CSS as a single big block when options are being saved - that way when the theme is reading from the database during regular use it's only pulling a small number of values - the big CSS block and anything that is dynamically generated (differences if you're logged in or not, browser-related changes, etc.) if anything. In this case we don't have to worry about the query-vs-decode issue because the decoding is all happening anyway on the client side - the only question is whether the content to be decoded (the CSS) is generated on the fly when the page is requested or if it's generated as a static block only when the configuration is changed.

Of course, it's possible that this is already happening and I missed it, but if not then it may be something worth looking at.

Similarly, if the way options are saved was consolidated into a smaller number of rows, each such row would also have to have a version number on it to avoid confusion during upgrades, etc. If adding such a thing, it might make sense to add both a version number and a name - thus allowing the saving of multiple Atahualpa configurations.

Just a couple of thoughts.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to change font size <h1> <h2> <h3> <h4> <h5> <h6> jesusguevarautomotriz Post-Kicker, -Byline & -Footer 2 Oct 8, 2009 09:17 PM
Issue (or suggestion for future) jfrenaye New Versions, & Updating 1 Sep 25, 2009 06:17 AM
Theme options showing no effect -- blogtitle & tagline uneditable KiKiComm Header configuration & styling 3 Sep 3, 2009 05:49 AM
Search & replace theme options? mcphoto Atahualpa 3 Wordpress theme 0 Jul 18, 2009 10:47 AM
Font Size & Face setting reset on save in Page Menu Bar options RobertSGold Page & Category Menu Bars 6 Apr 10, 2009 10:54 PM


All times are GMT -6. The time now is 12:31 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.