{"issue":{"state":"open","created_at":"2011-11-29T10:31:22Z","updated_at":"2011-11-29T10:31:22Z","user":{"gravatar_id":"dc8608867cf589d9039f95a60e8b8006","id":683894,"url":"https://api.github.com/users/tsarma","avatar_url":"https://secure.gravatar.com/avatar/dc8608867cf589d9039f95a60e8b8006?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"tsarma"},"comments":0,"body":"Hi, \n\n`$this->Automator->purgeHtmlFolder()` inside function `move()` of drivers `DC_Folder.php` file causes broken image in FE if a BE user uploads an image with cache is enabled for a website.\n\nScenario: Say a website has enabled a cache for 24 hours in the settings. If say page A.html with some images on it is opened in browser. The contao, will cached this page in tmp folder and its images in html folder. Now if a BE user logs in and upload an image with file manager, then `$this->Automator->purgeHtmlFolder()` is called which eventually deletes all the cached images. Under this case if someone else opens A.html before 24 hours of cached expiry time, Contao will serve the cached version of A.html. This cached version of page has all the images with broken link as html folder is cleaned by `purgeHtmlFolder()` function.\n\nRelated issues: #556\n\n--- _Originally created on February 28th, 2011, at 02:28pm (ID 2898)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2382889,"labels":[{"name":"backend","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/backend"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":2898,"title":"Cached image gets deleted on upload.","closed_at":null,"html_url":"https://github.com/contao/test/issues/2898","url":"https://api.github.com/repos/contao/test/issues/2898","milestone":{"state":"open","created_at":"2011-11-29T05:27:05Z","closed_issues":86,"due_on":null,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":32,"description":"Contao 2.10.0 (minor release)","title":"2.10.0","open_issues":1,"url":"https://api.github.com/repos/contao/test/milestones/32"}},"action":"opened"}