Skip to content

Conversation

@pkristian
Copy link
Contributor

Caching named lattes without rendering.

usage:

$latte = new Latte\Engine; $latte->setTempDirectory('/myCache'); $latte->warmupCache('something.latte');

note: Temp Directory must be set for point of this functionality

Copy link
Contributor

Choose a reason for hiding this comment

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

warmupCache might be a better name

@pkristian pkristian changed the title Engine: putToCache() Engine: warmupCache() Jul 4, 2015
Copy link

Choose a reason for hiding this comment

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

Doesn't this need to be turned back on after, if it was on before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. If you are creating this, you do it in clean instance, with another directory, or not?

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need to set autorefresh to false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't need perhabs

@dg dg closed this in 7657312 Jul 12, 2015
dg pushed a commit that referenced this pull request Jul 12, 2015
dg pushed a commit that referenced this pull request Jul 12, 2015
dg pushed a commit that referenced this pull request Jul 12, 2015
@pkristian pkristian deleted the issue55-pregenerating branch July 12, 2015 21:09
dg pushed a commit that referenced this pull request Aug 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants