Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not set dynamically cache value time!...this is a bug? #10239

Closed
hardlick opened this issue May 4, 2015 · 1 comment
Closed

not set dynamically cache value time!...this is a bug? #10239

hardlick opened this issue May 4, 2015 · 1 comment
Labels
bug A bug report stale Stale issue - automatically closed status: medium Medium

Comments

@hardlick
Copy link

hardlick commented May 4, 2015

in volt template:
login.volt
i have:

{% cache "loginPage" 28800 %}
    <body>...</body>
{% endcache %}

How to set the value 28800 that is in second, change for a variable ? like:
for example:

{% set variable = 54545 %}
{% cache "loginPage" variable %}

I try with this code:
{% set variable = 54545 %}
{% cache "loginPage" variable %}
but, Not!, not working, this is the error message:

Fatal error: Uncaught exception 'Phalcon\Mvc\View\Exception' with message 'Syntax error, unexpected token IDENTIFIER(variable)

this is my volt page:

{% set variable = 54545 %}
{% cache "loginPage" variable %}
@stale
Copy link

stale bot commented Apr 17, 2018

Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues

@stale stale bot added the stale Stale issue - automatically closed label Apr 17, 2018
@niden niden added bug A bug report status: medium Medium and removed Bug - Medium labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report stale Stale issue - automatically closed status: medium Medium
Projects
None yet
Development

No branches or pull requests

4 participants