![]() |
Regex in delete_cache - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Regex in delete_cache (/showthread.php?tid=67186) |
Regex in delete_cache - jhob - 01-25-2017 Is there any way of including a regex in delete_cache? I'm guessing not because of the way the filenames are hashed but thought I'd ask anyway. So I'd want to do something like: PHP Code: $this->output->delete_cache('/foo/bar/:num'); The reason I ask is that I have a 'single item' page which has it's cache deleted when that item is edited. I also want to delete the archive pages which are of the form '/item/index/recent/30/'. Thanks |