alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Page::PageNatures#cache_page?
Returns true if the page cache control headers should be set.
== Disable Alchemy's page caching globally
# config/alchemy/config.yml
...
cache_pages: false
== Disable caching on page layout level
# config/alchemy/page_layouts.yml
- name: contact
cache: false
== Note:
This only sets the cache control headers and skips rendering of the page body,
if the cache is fresh.
This does not disable the fragment caching in the views.
So if you don't want a page and it's elements to be cached,
then be sure to not use <% cache element %> in the views.Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/alchemy/page/page_natures.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Page--PageNatures-cache_page--for-pr
# Commit to gitgit add app/models/alchemy/page/page_natures.rbgit commit -m "better docs for Alchemy::Page::PageNatures#cache_page?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Page--PageNatures-cache_page--for-pr
hub pull-request
# Celebrate!