-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: docs/usage.rst
- Loading branch information
Showing
5 changed files
with
101 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
============ | ||
Configuration | ||
============ | ||
|
||
Provided your Django project has a working cache backend, django-sheets will cache requests to the Google Sheets API for 5 minutes. | ||
|
||
- Performance- making an extra HTTP request per page-view (or more) will lead to poor response times. | ||
- Reliability- The Google Sheets API may experience failing requests- having a cached copy on your servers means this is less likely to affect you. | ||
- Exceeding quota- By making excessive requests you risk exceeding the API Quota and having requests denied until the quota is refreshed, making your page unusable. | ||
|
||
If you wish to disable this cache, add to your settings file:: | ||
|
||
SHEETS_CACHE_DISABLED = True | ||
|
||
You can lower the cache timeout if you wish to sacrifice performance to lessen the chance of stale data, or extend it to improve performance and reduce server load:: | ||
|
||
# Set timeout to 1 hour | ||
SHEETS_CACHE_TIMEOUT = 3600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ Welcome to django-sheets's documentation! | |
:maxdepth: 2 | ||
|
||
installation | ||
configuration | ||
usage | ||
authors | ||
history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters