I have updated a page in Matrix and cleared the cache several times and at the highest level and all it's children. However my pages to the page will not show in Firefox or IE. It was just a simple page edit of a heading and a name. Does anyone know how I might fix this?
Are your pages live and public, etc? Because one day it seemed to me that nothing was clearing but my pages were still safe edit and I was logged in to a different url to these pages (e.g I was using www.h1.com/_admin to log in but the page was www.h2.com/page so I couldn't see the changes).
Maybe a long shot but about the only advice I have, sorry!
[quote]Are your pages live and public, etc? Because one day it seemed to me that nothing was clearing but my pages were still safe edit and I was logged in to a different url to these pages (e.g I was using www.h1.com/_admin to log in but the page was www.h2.com/page so I couldn't see the changes).
Maybe a long shot but about the only advice I have, sorry![/quote]
Oh thanks for your reply! :o)
but all the pages are live…it is a mystery!
What version of Matrix are you running? On newer versions, it is much simpler to append "/_recache" on the end of a URL which will clear and re-cache the content on the relevant assets for that URL.
Also if you have cacheable headers turned on, you will need to do a hard-refresh in your browser to see the changes immediately.
Although /_recache will only recache the url with / appended, you will still need to clear the cache from the admin interface if you want to clear the url without the / .
e.g. www.something.co/something/ will only be cleared by /_recache and to clear www.something.com/something you will need to go into the admin interface to do it.
Are you sure about that?
It might be worth double-checking in the code to verify. I would've thought that it would clear it for both - or at least, without the trailing slash by default.
Sure on 3.18 but not certain for 3.20 and on. I had made the assumption that it would have cleared both and advised users, a lot of users, to use the recache option rather than the admin interface. Have been up to my neck recaching and dealing with the fallout. Would be completely awesome if there were some other reason why it doesnt work, other than that is how it works in 3.18.
From 3.18.5, _recache operates on the URL instead of just the asset at that URL, so it clears all content at the URL. From 3.22 onwards, we got it to work correctly with or without the slash, so it now clears both.
Thanks Greg, does the recache sort out dependants or children? It seems to be more effective than the clear cache in the admin. Especially on pages with nested asset lists and design areas that would normally have to be cleared individually?
Yeah, couldn't the admin clear cache tool has the same functionality as the _recache option? That way, we would not have to always clear any nested assets.
Depedants don't have caching themselves. Cache is always held by the top level asset, so the answer would be "yes". And yes, it is more effective for complex implementations with nesting. It is built so editors can be 100% sure that a particular URL is now showing the correct content. The admin tool is useful to set things up so that particular assets are always cleared no matter what the URL or where they are nested.
[quote]Yeah, couldn't the admin clear cache tool has the same functionality as the _recache option? That way, we would not have to always clear any nested assets.[/quote]
Recache relies on assets actually being loaded during the page build. The admin tool could do it, but it would basically just do a request for _reache on all page URLs.
Right now, they work differently. I don't think the can both work like _reache because of the functionality I described above, but the admin tool could have an option to work like _reache so you have both options.
Awesome that it can work on both URL variants! that rocks, and nice work. Is it possibly backwards compatible, retrofitable and able to make other versions recacherockable?
[quote]Oh thanks for your reply! :o )
but all the pages are live…it is a mystery![/quote]
are you using company proxy like IIS to access the websites? in the browser setting is your website bypassed? Change the page's URL to have a try, also ask the infrastructure people for advice.
Eh, I guess it does not matter. I built an admin tool for my client that just requests the /_recache URL using ajax, which works very nicely.
We started to have this cache issue recently.
When creating new page, all the textual content and style show immediately. But if you make any changes to the asset e.g edit or add, it does not show up in preview, on certain assets I have waited 2 days and it does not update.
There is no caching applied to this test bed domain. Clearing System cache, applying /_nocache or /_recache does nothing.
Am I missing something here?
[quote]We started to have this cache issue recently.
When creating new page, all the textual content and style show immediately. But if you make any changes to the asset e.g edit or add, it does not show up in preview, on certain assets I have waited 2 days and it does not update.
There is no caching applied to this test bed domain. Clearing System cache, applying /_nocache or /_recache does nothing.
Am I missing something here?[/quote]
Have you changed the infrastructure recently? We had the issue before because /_nocache or /_recache can be cached by proxy(not Squid proxy).
Try to view the page from home (outside of your company network) to see if the update can be seen.
Robin
I have tried from home and iPhone.
I think it is our testbed that is having some issues. When I move the same assets to live site and point the design file it works perfectly, I can update, edit etc.
So I havn't got a clue why the test bed is doing this, hopefully when we change the URL it would go back to normal!
found the culprit for my caching issue :rolleyes:
Please provide some details of the cause and solution so we can save someone some time in the future, regardless how complex or simple it may have been. Cheers ![]()
[quote]We started to have this cache issue recently.
When creating new page, all the textual content and style show immediately. But if you make any changes to the asset e.g edit or add, it does not show up in preview, on certain assets I have waited 2 days and it does not update.
There is no caching applied to this test bed domain. Clearing System cache, applying /_nocache or /_recache does nothing.
Am I missing something here?[/quote]
If you are just using the Matrix cache you can set a trigger to clear the cache when an asset is updated. It is possible to do this with the squid cache too but we had some uhh… interesting results with this on our system which the Squiz support team are still looking into. In theory it is possible though.
We do find it sometimes takes a bit of work to clear the cache reliably on a 3.20 system. I find the best way is to use the features under System Tools and to ensure that you check 'Repopulate' and 'Clear Now'.