![]() |
Codeigniter caching the Captcha - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: Codeigniter caching the Captcha (/showthread.php?tid=63393) |
Codeigniter caching the Captcha - kaustubhlohiya - 10-25-2015 Hi all, I am creating a single page website which has a form in it (with captcha). I implemented codeigniter cache by putting in the following line at the start of index function as i just have two function viz. index which loads website and other to validate the form and submit in DB $this->output->cache(10080); The problem is this statement is causing the captcha name to be cached as well. first time the site opens fine but then when it is opened for the second time, the captcha image does not load. The console log shows the image name to be the same as first time no matter how many time i refresh Is there anyway i can define captcha as an exception for caching. Thanks a lot in advance RE: Codeigniter caching the Captcha - Narf - 10-26-2015 No, but a I have a better question - why would you want to cache a single page website? |