Skip to content

Break Cache functionality into a separate class. #1

Description

@syntaxseed

Create a TemplateCache class to hold all cache related functionality and settings.

Set an instance of this class in the TemplateSeed class. Create a cache() method in TemplateSeed class to return the reference to the template cache instance so we can do:

$tpl = new TemplateSeed(...);
if (!$tpl->cache()->isEnabled()) {
    $tpl->cache()->enableCaching();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions