Skip to content

Instantly share code, notes, and snippets.

@jlamim
Last active June 8, 2016 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlamim/0c014ed2817dfbe5f54b2f2123f4a1ba to your computer and use it in GitHub Desktop.
Save jlamim/0c014ed2817dfbe5f54b2f2123f4a1ba to your computer and use it in GitHub Desktop.
Exemplo de controllar para cache de páginas
<?php
class Base extends CI_Controller {
public function Index() {
$this->output->cache(10);
$this->load->view('pagina_em_cache');
}
public function Remove_cache() {
$this->output->delete_cache('cache');
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment