Page 1 of 1

App/_cache & Site Organization

Posted: 15 Dec 2014, 16:02
by alexhenes
When changes are made to how a site is structured and URLs change... should App/_cache be cleared and rebuilt?

Re: App/_cache & Site Organization

Posted: 16 Dec 2014, 08:26
by mjau-mjau
There is no need to clear it manually ... X3 detects based on modification dates what templates and pages need to be recreated ... You can force-refresh cache by deleting the content, but I can't see any benefits of that. Furthermore, the resized images cache is quite valuable and doesn't doesn't really relate to changes in pages.

Re: App/_cache & Site Organization

Posted: 16 Dec 2014, 13:27
by alexhenes
interesting... so if the url changes how does X3 know what cache image to use?

Re: App/_cache & Site Organization

Posted: 16 Dec 2014, 14:00
by mjau-mjau
alexhenes wrote:interesting... so if the url changes how does X3 know what cache image to use?
If you change URL, meaning you are changing the physical path to the image, then likely X3 will need to re-create and cache a new version of the image. It doesn't mean you need to delete your entire image cache though ... That means it will also need to re-create images from all the folders that are unchanged, which is an "expensive" process for your server. Worst case scenario, you will have some unused orphan images in your cache folder.

Thus, X3 will always get the correct image, or create a new cached version, regardless of if you delete the image cache or not.