Skip to content

Engine: warmupCache()#74

Closed
pkristian wants to merge 1 commit into
nette:v2.3from
pkristian:issue55-pregenerating
Closed

Engine: warmupCache()#74
pkristian wants to merge 1 commit into
nette:v2.3from
pkristian:issue55-pregenerating

Conversation

@pkristian
Copy link
Copy Markdown
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

Comment thread src/Latte/Engine.php Outdated
Copy link
Copy Markdown
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
Comment thread src/Latte/Engine.php Outdated
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants