This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled configurable plugin caching for CMS 3.3.0+ installations (#407)
* Re-enable caching for CMS 3.3.0+ installations * Updated for review comments * Added ability to set cache_duration for plugin on CMS 3.3.0+ * Fixed tox.ini * Updated for review comments
- Loading branch information
1 parent
e41e600
commit 831f614
Showing
6 changed files
with
389 additions
and
14 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.6 on 2016-06-23 21:03 | ||
from __future__ import unicode_literals | ||
|
||
import app_data.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('aldryn_newsblog', '0012_auto_20160503_1626'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='newsblogarchiveplugin', | ||
name='cache_duration', | ||
field=models.PositiveSmallIntegerField(default=0, help_text="The maximum duration (in seconds) that this plugin's contentshould be cached. Values between 5 minutes (300) and one day (84600) recommended)."), | ||
), | ||
migrations.AddField( | ||
model_name='newsbloglatestarticlesplugin', | ||
name='cache_duration', | ||
field=models.PositiveSmallIntegerField(default=0, help_text="The maximum duration (in seconds) that this plugin's contentshould be cached. Values between 5 minutes (300) and one day (84600) recommended)."), | ||
), | ||
migrations.AddField( | ||
model_name='newsblogrelatedplugin', | ||
name='cache_duration', | ||
field=models.PositiveSmallIntegerField(default=0, help_text="The maximum duration (in seconds) that this plugin's contentshould be cached. Values between 5 minutes (300) and one day (84600) recommended)."), | ||
), | ||
migrations.AlterField( | ||
model_name='newsblogconfig', | ||
name='app_data', | ||
field=app_data.fields.AppDataField(default='{}', editable=False), | ||
), | ||
] |
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
Oops, something went wrong.