Zend Server Page Cache $_SESSION
Bonjour à tous,
Je viens d'installer un Zend Server et j'essaye de configurer le page cache.
Je n'arrive pas à placer une condition sur la session :
Je souhaite mettre en cache uniquement quand le client n'a pas d'article dans le panier (donc vérifier que Cart n'existe pas)
Dans Zend Server j'ai mis :
_SESSION -> [jigoshop][1208170][cart] -> doesn't exist
Mais la regle continue à etre appliqué comme indiqué dans les logs :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| [Page-Cache 03.10.2012 10:17:07 DBG3] rule from rules cache found for: http://www.marlette.fr/
[Page-Cache 03.10.2012 10:17:07 DBG1] waiting for session data before deciding whether to use cached data
[Page-Cache 03.10.2012 10:17:07 DBG2] Buffering header for storing: Set-Cookie: _icl_current_language=fr; expires=Thu, 04-Oct-2012 08:17:07 GMT; path=/
[Page-Cache 03.10.2012 10:17:07 DBG1] Session function wrapper called for session_start
[Page-Cache 03.10.2012 10:17:07 DBG2] Buffering header for storing: Expires: Thu, 19 Nov 1981 08:52:00 GMT
[Page-Cache 03.10.2012 10:17:07 DBG2] Buffering header for storing: Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
[Page-Cache 03.10.2012 10:17:07 DBG2] Buffering header for storing: Pragma: no-cache
[Page-Cache 03.10.2012 10:17:07 DBG1] Session has started for url http://www.marlette.fr/ with matched rule: http://www.marlette.fr/
[Page-Cache 03.10.2012 10:17:07 DBG3] Storing pre-session data before deciding whether to use cache
[Page-Cache 03.10.2012 10:17:07 DBG1] session data resolved
[Page-Cache 03.10.2012 10:17:07 DBG1] Cache entry found for url: http://www.marlette.fr/ , specific match key: D41D8CD98F00B204E9800998ECF8427E
[Page-Cache 03.10.2012 10:17:07 DBG3] using compressed output ? for : http://www.marlette.fr/
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: Set-Cookie: _icl_current_language=fr; expires=Thu, 04-Oct-2012 07:45:26 GMT; path=/
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: Expires: Thu, 19 Nov 1981 08:52:00 GMT
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: Pragma: no-cache
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: X-Pingback: http://www.marlette.fr/xmlrpc.php
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: Content-Type: text/html; charset=UTF-8
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: Last-Modified: Wed, 03 Oct 2012 07:45:27 GMT
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: Content-Encoding: gzip
[Page-Cache 03.10.2012 10:17:07 DBG3] Sending header: Vary: Accept-Encoding
[Page-Cache 03.10.2012 10:17:07 DBG3] Writing php body from cache. Data size is 12873
[Page-Cache 03.10.2012 10:17:07 DBG3] Calling zend_bailout
[Page-Cache 03.10.2012 10:17:07 DBG3] storeToCache handler called with output size of 12873 |
Ma session :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
| [jigoshop] => Array
(
[1208170] => Array
(
[customer] => Array
(
[country] => FR
[state] => ILE
[postcode] =>
[shipping_country] => FR
[shipping_state] => ILE
[shipping_postcode] =>
)
[cart] => Array
(
[66d7c34d2d97ec7ff920c4395d3b4be0] => Array
(
[data] => jigoshop_product Object
(
[id] => 343
[ID] => 343
[exists] => 1
[product_type] => simple
[sku] => 343
[data] =>
[post] =>
[meta] => Array
(
[regular_price] => Array
(
[0] => 5.9
)
[sous-titre] => Array
(
[0] =>
)
[description] => Array
(
[0] => Farine de blé T65*, farine d'peautre*, sucre blond de canne*, sel de l'île de Ré.
(*) Issu de lagriculture biologique.
Fabriqué dans un atelier qui utilise des fruits secs et du sésame.
)
[mode_demploi] => Array
(
[0] => 1- Versez le contenu du sachet dans un saladier.
2- Ajoutez les ufs entiers.
3- Versez petit-à-petit le lait et le beurre fondu petit à petit tout en mélangeant à laide dun fouet jusquà obtenir une pâte lisse.
4- Laissez reposer la pâte 1/2 heure (facultatif).
5- Faites cuire vos crêpes dans une poêle chaude et légèrement huilée jusquà ce quelles soient bien dorées de chaque côté.
6- Dégustez-les natures ou accompagnées de beurre salé, de caramel, dun jus de citron
.
)
[astuce] => Array
(
[0] => Vous pouvez ajouter à votre préparation un bouchon de Rhum ou de la fleur d'oranger!
)
[type_vue] => Array
(
[0] => Vue produit
)
[tax_status] => Array
(
[0] => taxable
)
[tax_classes] => Array
(
[0] => a:1:{i:0;s:1:"*";}
)
[visibility] => Array
(
[0] => visible
)
[customizable] => Array
(
[0] => no
)
[manage_stock] => Array
(
[0] => 1
)
[stock] => Array
(
[0] => 98
)
[backorders] => Array
(
[0] => no
)
[stock_status] => Array
(
[0] => -1
)
[_edit_last] => Array
(
[0] => 3
)
[_edit_lock] => Array
(
[0] => 1344439376:3
)
[stock_sold] => Array
(
[0] => -3
)
[_js_total_sales] => Array
(
[0] => 1
)
[sale_price] => Array
(
[0] =>
)
[weight] => Array
(
[0] => 0
)
[length] => Array
(
[0] => 0
)
[width] => Array
(
[0] => 0
)
[height] => Array
(
[0] => 0
)
[featured] => Array
(
[0] =>
)
[customized_length] => Array
(
[0] =>
)
[product_attributes] => Array
(
[0] =>
)
[sale_price_dates_from] => Array
(
[0] =>
)
[sale_price_dates_to] => Array
(
[0] =>
)
[_sous-titre] => Array
(
[0] => field_4feac9c90ad73
)
[preparation] => Array
(
[0] => Préparation : 4 min
Repos : 30 min
)
[_preparation] => Array
(
[0] => field_500d6509cb9e1
)
[ingredients] => Array
(
[0] => 3 ufs
80g de beurre doux
½ l de lait
)
[_ingredients] => Array
(
[0] => field_500d6509cc039
)
[_description] => Array
(
[0] => field_4fec74473d2cb
)
[_astuce] => Array
(
[0] => field_4feacbab82ea1
)
[_mode_demploi] => Array
(
[0] => field_4feacbf936adf
)
[nb_part] => Array
(
[0] => POUR UNE QUINZAINE DE CREPES
)
[_nb_part] => Array
(
[0] => field_500d760e7aae1
)
[_gallery] => Array
(
[0] => field_500ea975af6ca
)
[_thumbnail_id] => Array
(
[0] => 759
)
[video] => Array
(
[0] =>
)
[_video] => Array
(
[0] => field_500ebaf2d1b3e
)
[_type_vue] => Array
(
[0] => field_4fec74ff17b29
)
[_su_rich_snippet_type] => Array
(
[0] => none
)
[gallery] => Array
(
[0] => http://www.marlette.fr/wp-content/uploads/crepe_pack.jpg
[1] => http://www.marlette.fr/wp-content/uploads/crepes.jpg
)
[_su_title] => Array
(
[0] =>
)
[_su_description] => Array
(
[0] =>
)
)
[regular_price:protected] => 5.9
[sale_price:protected] =>
[sale_price_dates_from:jigoshop_product:private] =>
[sale_price_dates_to:jigoshop_product:private] =>
[weight:jigoshop_product:private] => 0
[length:jigoshop_product:private] => 0
[width:jigoshop_product:private] => 0
[height:jigoshop_product:private] => 0
[tax_status:jigoshop_product:private] => taxable
[tax_class:jigoshop_product:private] =>
[visibility] => visible
[featured:jigoshop_product:private] =>
[manage_stock:jigoshop_product:private] => 1
[stock_status:jigoshop_product:private] => -1
[backorders:jigoshop_product:private] => no
[stock] => 98
[stock_sold:jigoshop_product:private] => -3
[attributes:jigoshop_product:private] => Array
(
)
[children] => Array
(
)
[jigoshop_options:protected] =>
)
[product_id] => 343
[quantity] => 2
[variation] => Array
(
)
[variation_id] =>
)
)
[coupons] => Array
(
)
)
) |
Merci d'avance si quelqu'un à une idée !