It is very inefficient to make multiple external site requests when users are loading a site. Although the content is cached for an hour, populating the cache takes an unbearable amount of time. A better workflow would be to populate the content into the WP database via a WP admin GUI, with the database having tables for artists content and the entries of the artist. Queries could be done against this data instead of having to access the API every time a entry parameter is changed.
The plugin could work i.e. in the following way:
Provide a way to add artists in WP Admin and load all the entries for that artist from www.ultimate-guitar.com
Redesign the shortcode generator to take the loaded artists into consideration
The cache would work in a similar fashion as currently, but it would cache the database content instead of the one provided by the API
If an unknown artist were to be used in a shortcode and the client loads the page, there should be some message e.g. "No content found"
It is very inefficient to make multiple external site requests when users are loading a site. Although the content is cached for an hour, populating the cache takes an unbearable amount of time. A better workflow would be to populate the content into the WP database via a WP admin GUI, with the database having tables for artists content and the entries of the artist. Queries could be done against this data instead of having to access the API every time a entry parameter is changed.
The plugin could work i.e. in the following way: