0

Is there some kind of timestamp which reflects the last overall editorial change in Craft? I would like to use this for a cache key which automatically invalidates as soon as anything (Entry, Asset, Global, Category, ....) in Craft was changed by an editor.

like:

{% cache globally using key "whatever" ~ lastChange %}
...
{% endcache %}
  • 2
    I'm not sure you could do that out of the box without it being a bit heavy but assuming most things are elements, you could make a small plugin that looks up the elements table dateUpdated column and return that in your template..? – Oli Nov 14 '19 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.