Skip to content
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

Add caching headers and sulu twig parameters #109

Merged

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Mar 21, 2017

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

Add caching and sulu twig parameters.

Why?

Articles are currently not cached.

BC Breaks/Deprecations

_cacheLifetime will return the seconds instead of whole cacheLifetime array.

To Do

  • Upgrade.md
  • Add Tests

@alexander-schranz alexander-schranz force-pushed the feature/caching-headers branch 2 times, most recently from 5313a1c to fcc5e76 Compare March 21, 2017 10:09
@wachterjohannes wachterjohannes added this to the 0.4.0 milestone Mar 24, 2017
@alexander-schranz alexander-schranz force-pushed the feature/caching-headers branch from fcc5e76 to a3d3ed2 Compare March 27, 2017 14:34

if (!is_array($cacheLifetime)
|| !isset($cacheLifetime['type'])
|| !isset($cacheLifetime['value'])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wachterjohannes not sure if I should check is_array, isset or just let it run into an error when it not exists.

@wachterjohannes wachterjohannes merged commit 981ed4f into sulu:develop Mar 27, 2017
@alexander-schranz alexander-schranz deleted the feature/caching-headers branch March 27, 2017 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants