swappsco / django-wordpress-api

MIT License
22 stars 9 forks source link

Add cache settings #1

Open cdvv7788 opened 7 years ago

cdvv7788 commented 7 years ago

Fetching data from an external wordpress site does not come without an overhead. On the bright side, that content should not change much under normal conditions, so it is a perfect candidate to be cached. I think that adding a couple settings to define the cache's duration is definitely worth, because on a couple sites that i am using this library in, this app's views are the slowest by far.