Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord - print query before run (CI 2.0.2)
#4

[eluser]toopay[/eluser]
[quote author="jacek.s" date="1313123738"]when for example two other controller methods use same model then two cache files will be created ( with same content )[/quote] Really? Using same table, yes maybe. But using same/exact query ?I wonder why someone need to output same content using different controller then.
[quote author="jacek.s" date="1313123738"]other problem is when you want clean cache you have to remember about all methods in all controllers with use these method in model and other if you start using routes for example for friendly url -s then you have to change all clean cache calls.[/quote] For these either we can extend the native cache method and add some procedure to check the cached file using filemtime and set the expiration time, or easier : set a cron job to delete all cached data periodically.


Messages In This Thread
ActiveRecord - print query before run (CI 2.0.2) - by El Forum - 08-10-2011, 02:18 PM
ActiveRecord - print query before run (CI 2.0.2) - by El Forum - 08-11-2011, 04:50 PM
ActiveRecord - print query before run (CI 2.0.2) - by El Forum - 08-11-2011, 05:35 PM
ActiveRecord - print query before run (CI 2.0.2) - by El Forum - 08-11-2011, 05:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB