ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Clear template cache via PHP or EE tag?

January 03, 2012 12:41pm

Subscribe [2]
  • #1 / Jan 03, 2012 12:41pm

    johnny.slack

    4 posts

    I have an admin option when an admin is logged that allows an administrator to switch drafted entries on and off for a blog front-end, but since template caching is enabled - they get a cached response, so it doesn’t really work. Is there a way I can clear the template cache via php or EE to clear the template cache when they click to switch between showing and hiding drafted entries?

  • #2 / Jan 03, 2012 8:57pm

    Sean C. Smith

    3818 posts

    Hi johnny.slack,

    There is no way to do that with EE out of the box. I did however search Devot://ee and found Purge which I believe will do what you are looking to achieve.

    Please let me know if there is anything else I can do to help.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases