Search code examples
phpcodeignitergoogle-mapsredispredis

How to store codeigniter view file gmap to redis to make view display faster?


I am currently using the Predis library for codeigniter. The redis server am using is version 3.2 the last stable and battle tested version. I have no problem saving, updating and deleting the datas in the redis. But my current problem now is, How to make a view file load faster?

Currently, I have a view file that displays the google map, it is being rendered by javascript. Hence, from google's gmap code. Is there a way to make this page load faster ?, which data should I save to redis to do so? am I supposed to save the whole body of the html and render it ?


Solution

  • Redis can't make your view load faster, Google Maps uses a set of images and javascript to render the map (This is what makes an slow page loading), if you want to make this faster, use an image and link it to Google Maps site (Not embedding the map on the view).