Welcome Guest, Not a member yet? Register   Sign In
Sharing the CI cache folder
#1

[eluser]Nial[/eluser]
Apologies if this has been asked before. I did a quick forum search and checked the documentation. Basically, I'm using CI with another third-party library that makes use of flat-file caching. To keep things clean, I have the library place its cached files into CI's default cache directory.

I just wanted to make sure that CI only flushes the cache files it creates. This seems like the logical behaviour. As far as I can tell, CI checks for timestamp metadata within its cache files. If it's not present, the cache is ignored.

Code:
if ( ! preg_match("/(\d+TS--->)/", $cache, $match))
        {
            return FALSE;
        }

It'd just be nice to get this confirmed.


Messages In This Thread
Sharing the CI cache folder - by El Forum - 10-06-2009, 11:05 AM
Sharing the CI cache folder - by El Forum - 10-07-2009, 07:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB