-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Caching #136
Comments
Rewrite convoluted resource name lookup for map template tag, needs refactoring some day tho... Make all jQuery calls to the API cachable. Remove un-needed map ID parameter in map tempalte tag. Fixes to google maps options. Formatting fixes.
…ments. Added dependent pip packages for building the Celery package. Added package version numbers as required.
API Caching solution for Map calls - to be Code-Checked by @peeb |
@zzgvh - did we implement the Caching solution for the API? If so, can you confirm it's working correctly? |
@zzgvh am I correct that what was implemented for this previously has been removed due to issues? |
Caching is currently running on live using a customized version of django-cacheback. However even if it's very elegant in a way, the coding needed for it to integrate into tastypie is ugly and brittle since I had to rewrite a couple of the internal methods. It has already broken once due to internal changes in tastypie. So I'd like to back out of this experiment and go back to a memcached-based solution for the short term, and look at using varnish (for the whole site) in the longer term. |
Use SimpleCache to add memcached-based caching to OrganisationMap and ProjectMap resources.
@zzgvh could you give a brief update on what we still need to do, and at that point we need to decide which Milestone/Release to put this into. |
Having dug deeper in the Tastypie code I find that the caching for the maps resources works as intended. Unfortunately that means that only individual objets are cached, that is all Tastypie provides, so the calls we're making to populate the global maps are never cached 😞 I suggest we close this for now and implement Varnish ASAP. The live server seems to hold up fairly well as it is. |
Agreed - I'll create a new Varnish issue based on the above requirements. |
We are currently utilising the API resource for generating pins for the Global Project maps and project page maps.
The process to collect all the data required for the maps take some time and has caused server issues during the previous release.
We have implemented a part-solution to collect the points on the map in 100 intervals, allowing the server to respond more effectively. But the process still takes too long to completely populate.
We need to investigate and implement a Caching solution for the API data returned for the maps. This solution should collect and store the data set being called for, to allow faster access to the web server when requested.
In the event that this solution is effective then it should be ported also to the homepage to replace the image that is currently present.
Any solution that has been found that covers these requirements should be presented as following:
The text was updated successfully, but these errors were encountered: