@@ -2113,20 +2113,12 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache){
2113
2113
if (phalcon_array_isset_string (statement , SS ("lifetime" ))) {
2114
2114
PHALCON_OBS_VAR (lifetime );
2115
2115
phalcon_array_fetch_string (& lifetime , statement , SL ("lifetime" ), PH_NOISY_CC );
2116
- <<<<<<< HEAD
2117
- PHALCON_SCONCAT_SVS (compilation , "$_cacheKey[" , expr_code , "] = " );
2118
- PHALCON_SCONCAT_SVSVSVS (compilation , "$_cache[" , expr_code , "]->start(" , expr_code , ", " , lifetime , "); " );
2119
- } else {
2120
- PHALCON_SCONCAT_SVSVSVS (compilation , "$_cacheKey[" , expr_code , "] = $_cache[" , expr_code , "]->start(" , expr_code , "); " );
2121
- }
2122
- = == == ==
2123
2116
PHALCON_SCONCAT_SVS (compilation , "$_cacheKey[" , expr_code , "]" );
2124
2117
PHALCON_SCONCAT_SVSVSVS (compilation , " = $_cache[" , expr_code , "]->start(" , expr_code , ", " , lifetime , "); " );
2125
2118
} else {
2126
2119
PHALCON_SCONCAT_SVSVSVS (compilation , "$_cacheKey[" , expr_code , "] = $_cache[" , expr_code , "]->start(" , expr_code , "); " );
2127
2120
}
2128
2121
2129
- >>>>>>> 1.0 .0
2130
2122
PHALCON_SCONCAT_SVS (compilation , "if ($_cacheKey[" , expr_code , "] === null) { ?>" );
2131
2123
/**
2132
2124
* Get the code in the block
@@ -2141,13 +2133,9 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache){
2141
2133
/**
2142
2134
* Check if the cache has a lifetime
2143
2135
*/
2144
- <<<<<<< HEAD
2145
- if (lifetime ) {
2146
- = == == ==
2147
2136
if (phalcon_array_isset_string (statement , SS ("lifetime" ))) {
2148
2137
PHALCON_OBS_NVAR (lifetime );
2149
2138
phalcon_array_fetch_string (& lifetime , statement , SL ("lifetime" ), PH_NOISY_CC );
2150
- >>>>>>> 1.0 .0
2151
2139
PHALCON_SCONCAT_SVSVSVS (compilation , "<?php $_cache[" , expr_code , "]->save(" , expr_code , ", null, " , lifetime , "); " );
2152
2140
PHALCON_SCONCAT_SVS (compilation , "} else { echo $_cacheKey[" , expr_code , "]; } ?>" );
2153
2141
} else {
0 commit comments