zachfeldman / rubypress

Ruby interface for the WordPress XMLRPC API. Follows standard XML-RPC Documentation closely.
201 stars 55 forks source link

Caching result #48

Closed adaam2 closed 8 years ago

adaam2 commented 8 years ago

How can I go about caching the result of wp.getPosts. My Wordpress Installation is hosted on a really slow server (Azure ergh) and loading in my most recent posts is affecting the speed of my lovely speedy Rails app! (Apologies, I'm a .NET dev)

zachfeldman commented 8 years ago

Hey there, this is not something the Gem does for you, you can do this on your side by storing posts in the database, redis, or just in a variable depending on your needs. If this is a feature you'd like to see though feel free to send a pull request and I'll consider it.