Last active
June 8, 2016 21:30
-
-
Save jlamim/0c014ed2817dfbe5f54b2f2123f4a1ba to your computer and use it in GitHub Desktop.
Exemplo de controllar para cache de páginas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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