CakePHP: Delete Cached Models on Database Change

Last week, I had to back out a (quite big) patch from the to-be-published addons.mozilla.org trunk because while it worked on our developer instances, it behaved totally strange on the staging environment: When I saved a record using the newly added UI, the changes partly didn’t show up in the database.

So we went ahead and delayed the release of the patch until we figured out what the problem was.

After a little digging around the internet today I found a hint suggesting to flush CakePHP’s cached models/table descriptions from the app/tmp/cache/models directory every time a database change is applied — which fixed the problem we encountered.

So, fellow CakePHP users, keep that in mind next time you alter your DB, and your life will be happier :).

Categories: Mozilla Crosspost, OSU OSL Crosspost, Tech Talk

European Parliament reviews liquids ban on airplanes

Liquids on a Plane spoofThe European Parliament in Strasbourg want the European Commission to review the ban on liquids on European flights:

EU parliamentarians are to vote on a resolution Wednesday calling on the EU executive to urgently review the restrictions, which have led to widespread confiscations, confusion and delays at airports.

“The European Parliament is concerned that the cost (of) the regulation may not be proportionate to the added value in terms of additional security,” says the resolution, which is expected to be approved.

I hope the European Commission does relax the rules at least a little bit: The current ban on liquids on flights all over the world have, according to many security experts, while not increasing security significantly, caused much hassle and produced a great deal of cost for airlines and travelers. Apparently, people who want to smuggle liquids, succeed, and honest travelers like us get to throw away millions of bottles of water, with organizations outside the airport now happily joining the paranoia.

Easing the European travel regulations could take some time though: Each of the now 27 member countries of the European Union would have to approve.

Next step: Keeping our shoes on.

(Picture source)

Categories: Germany