php - Can Symfony simply reload a page request? -


I have an app that receives requests from another app. It detects a value on the query string, checks the value against the cached value and, if it does not match, then it has to clear its cache and reload the page (install a new cache do). Unfortunately, I can not find any way to tell Symphony about redirecting the current page to the same format (protocol, URI path, query string, etc.). What am I missing? This is happening in a filter at isFirstCall () .

Thank you.

We did this in a filter.

This is a little hack but it is an example of redirecting to a filter ... you have to test the cache itself ...

  class is invalid caffef filter expands Sffilter {public function executed ($ filterChain) {$ redirect = true; If ($ redirect === true) {$ request = $ this- & gt; GetContext () - & gt; GetRequest (); / ** This is a hack bit I'm pretty sure we can do it in the requested item, but we need to complete it quickly and what it really should be. * / Header ("location:". $ Request- & gt; getUri ()); Go out(); } $ Filter icon- & gt; carry about (); }}  

Comments

  1. Mohegan Sun - Casino and Resort - Mapyro
    Mohegan Sun is a hotel 천안 출장샵 and casino located 안산 출장마사지 in Uncasville, Connecticut. The hotel is open 24 hours. The casino has 제천 출장안마 an outdoor pool and is open 24 hours a day. Rating: 논산 출장샵 2.9 · ‎1,971 reviews 아산 출장샵 · ‎Price range: $110

    ReplyDelete

Post a Comment

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -