i'm not going able cache full html pages (dynamic content etc.), i'm thinking of this:
class controllerextension extends controller { public function render($view, array $parameters = array(), response $response = null) { //cache $parameters , tie route name somehow $the_cache['route_name'] = $parameters; //then render normal return parent::render($view, $parameters, $response); } } now, later requests make use of variables generated. make requests mobile app same url (and returns variables in json appending query param) - both reqest types too.
i use controller listener run controller checks if cached variables exists or something.
is idea , use cache variables? memcache?
Comments
Post a Comment