I have two exact copies of the same code installed in the same server running a common AMP stack (I am using bitnami). One copy is named as 'dev' and another one is 'prod'.
Only they have their own database & files (which are clones as well).
In dev, Image styles work just fine. I do
drush if - it deletes the styles and creates when viewed.
But in prod, drupal throws
503 service unavailable with a
Image generation in progress. Try again shortly. content on the first hit (or until the image is generated).
Of-course that comes from
image.module line 858, when drupal finds a
lock. And somehow setting
image_allow_insecure_derivatives to TRUE might solve this issue.
What I don't understand is why its happening! And whats the remedy?